aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-08-04 22:11:07 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-08-04 22:11:07 +0800
commit721ea24a226c2dca5cfef4b3f638d251547df0b8 (patch)
tree76c9d8c2790db8730c95af2d250a4b062df1215a /src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java
parent82225991887f55047d161a18e6fa19f798c0ba67 (diff)
downloadRoughlyEnoughItems-721ea24a226c2dca5cfef4b3f638d251547df0b8.tar.gz
RoughlyEnoughItems-721ea24a226c2dca5cfef4b3f638d251547df0b8.tar.bz2
RoughlyEnoughItems-721ea24a226c2dca5cfef4b3f638d251547df0b8.zip
yes thank you
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java b/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java
index d4de9bb00..07a9c96d4 100644
--- a/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java
+++ b/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java
@@ -106,7 +106,7 @@ public class VillagerRecipeViewingScreen extends Screen {
widgets.add(new CategoryBaseWidget(new Rectangle(xx - 6, bounds.y + bounds.height - 5, 11 + w * 18, 15 + h * 18)));
int index = 0;
List<String> list = Collections.singletonList(Formatting.YELLOW.toString() + I18n.translate("text.rei.working_station"));
- for(List<ItemStack> workingStation : workingStations) {
+ for (List<ItemStack> workingStation : workingStations) {
widgets.add(new SlotWidget(xx, yy, workingStation, true, true, true) {
@Override
protected List<String> getExtraToolTips(ItemStack stack) {
@@ -134,7 +134,7 @@ public class VillagerRecipeViewingScreen extends Screen {
this.widgets.add(new AutoCraftingButtonWidget(supplier.get().get(recipeBounds), supplier.get().getButtonText(), () -> display));
int index = 0;
- for(RecipeDisplay recipeDisplay : categoryMap.get(category)) {
+ for (RecipeDisplay recipeDisplay : categoryMap.get(category)) {
int finalIndex = index;
RecipeRenderer recipeRenderer;
recipeRenderers.add(recipeRenderer = category.getSimpleRenderer(recipeDisplay));
@@ -153,7 +153,7 @@ public class VillagerRecipeViewingScreen extends Screen {
});
index++;
}
- for(int i = 0; i < TABS_PER_PAGE; i++) {
+ for (int i = 0; i < TABS_PER_PAGE; i++) {
int j = i + tabsPage * TABS_PER_PAGE;
if (categories.size() > j) {
TabWidget tab;
@@ -251,7 +251,7 @@ public class VillagerRecipeViewingScreen extends Screen {
@Override
public boolean charTyped(char char_1, int int_1) {
- for(Element listener : children())
+ for (Element listener : children())
if (listener.charTyped(char_1, int_1))
return true;
return super.charTyped(char_1, int_1);
@@ -271,7 +271,7 @@ public class VillagerRecipeViewingScreen extends Screen {
scrollBarAlphaFutureTime = System.currentTimeMillis();
return true;
}
- for(Element listener : children())
+ for (Element listener : children())
if (listener.mouseScrolled(double_1, double_2, double_3))
return true;
if (bounds.contains(ClientUtils.getMouseLocation())) {
@@ -326,7 +326,7 @@ public class VillagerRecipeViewingScreen extends Screen {
GlStateManager.pushMatrix();
Scissors.begin();
Scissors.scissor(0, scrollListBounds.y + 1, width, scrollListBounds.height - 2);
- for(int i = 0; i < buttonWidgets.size(); i++) {
+ for (int i = 0; i < buttonWidgets.size(); i++) {
ButtonWidget buttonWidget = buttonWidgets.get(i);
buttonWidget.getBounds().y = scrollListBounds.y + 1 + yOffset - (int) scroll;
if (buttonWidget.getBounds().getMaxY() > scrollListBounds.getMinY() && buttonWidget.getBounds().getMinY() < scrollListBounds.getMaxY()) {
@@ -335,7 +335,7 @@ public class VillagerRecipeViewingScreen extends Screen {
}
yOffset += buttonWidget.getBounds().height;
}
- for(int i = 0; i < buttonWidgets.size(); i++) {
+ for (int i = 0; i < buttonWidgets.size(); i++) {
if (buttonWidgets.get(i).getBounds().getMaxY() > scrollListBounds.getMinY() && buttonWidgets.get(i).getBounds().getMinY() < scrollListBounds.getMaxY()) {
GuiLighting.disable();
recipeRenderers.get(i).setBlitOffset(1);
@@ -429,7 +429,7 @@ public class VillagerRecipeViewingScreen extends Screen {
}
return false;
}
- for(Element element : children())
+ for (Element element : children())
if (element.keyPressed(int_1, int_2, int_3))
return true;
return super.keyPressed(int_1, int_2, int_3);