aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/hysky/skyblocker/skyblock/item/SkyblockCraftingTableScreen.java
diff options
context:
space:
mode:
authorvicisacat <victor.branchu@gmail.com>2024-03-19 08:45:49 +0100
committervicisacat <victor.branchu@gmail.com>2024-04-02 17:59:28 +0200
commit1efc40508a99accee0ec3f5cb3e8492a7b61d20c (patch)
treed676adc1509cad6f96ff18e40220a54fde3221f3 /src/main/java/de/hysky/skyblocker/skyblock/item/SkyblockCraftingTableScreen.java
parent411c196e55db4ef90c48bfd3355ec508884582e0 (diff)
downloadSkyblocker-1efc40508a99accee0ec3f5cb3e8492a7b61d20c.tar.gz
Skyblocker-1efc40508a99accee0ec3f5cb3e8492a7b61d20c.tar.bz2
Skyblocker-1efc40508a99accee0ec3f5cb3e8492a7b61d20c.zip
reformat whole file to the rescue!
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/skyblock/item/SkyblockCraftingTableScreen.java')
-rw-r--r--src/main/java/de/hysky/skyblocker/skyblock/item/SkyblockCraftingTableScreen.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/de/hysky/skyblocker/skyblock/item/SkyblockCraftingTableScreen.java b/src/main/java/de/hysky/skyblocker/skyblock/item/SkyblockCraftingTableScreen.java
index 13c04e8b..95cbbf4a 100644
--- a/src/main/java/de/hysky/skyblocker/skyblock/item/SkyblockCraftingTableScreen.java
+++ b/src/main/java/de/hysky/skyblocker/skyblock/item/SkyblockCraftingTableScreen.java
@@ -51,7 +51,7 @@ public class SkyblockCraftingTableScreen extends HandledScreen<SkyblockCraftingT
this.recipeBook.toggleOpen();
this.x = this.recipeBook.findLeftEdge(this.width, this.backgroundWidth) + 11;
button.setPosition(this.x + 5, this.height / 2 - 49);
- if(moreCraftsButton != null) moreCraftsButton.setPosition(this.x + 174, this.y+62);
+ if (moreCraftsButton != null) moreCraftsButton.setPosition(this.x + 174, this.y + 62);
}));
moreCraftsButton = new TexturedButtonWidget(this.x + 174, y + 62, 16, 16, MORE_CRAFTS_TEXTURES,
button -> this.onMouseClick(handler.slots.get(26), handler.slots.get(26).id, 0, SlotActionType.PICKUP));
@@ -100,7 +100,7 @@ public class SkyblockCraftingTableScreen extends HandledScreen<SkyblockCraftingT
int i = this.x;
int j = (this.height - this.backgroundHeight) / 2;
context.drawTexture(TEXTURE, i, j, 0, 0, this.backgroundWidth, this.backgroundHeight);
- context.drawGuiTexture(QUICK_CRAFT, i+173, j, 0, 25, 84);
+ context.drawGuiTexture(QUICK_CRAFT, i + 173, j, 0, 25, 84);
}
@Override
@@ -122,7 +122,7 @@ public class SkyblockCraftingTableScreen extends HandledScreen<SkyblockCraftingT
@Override
protected boolean isClickOutsideBounds(double mouseX, double mouseY, int left, int top, int button) {
- boolean bl = mouseX < (double)left || mouseY < (double)top || mouseX >= (double)(left + this.backgroundWidth) || mouseY >= (double)(top + this.backgroundHeight);
+ boolean bl = mouseX < (double) left || mouseY < (double) top || mouseX >= (double) (left + this.backgroundWidth) || mouseY >= (double) (top + this.backgroundHeight);
return this.recipeBook.isClickOutsideBounds(mouseX, mouseY, this.x, this.y, this.backgroundWidth, this.backgroundHeight, button) && bl;
}