aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/impl/widgets/PanelWidget.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-03-19 04:22:55 +0800
committershedaniel <daniel@shedaniel.me>2020-03-19 04:22:55 +0800
commit1764648e4f536b2e6ac1b7d1cb3c3fb60e206b29 (patch)
treedec596bfe19105554b2c8a9b3045f0431f495fa3 /src/main/java/me/shedaniel/rei/impl/widgets/PanelWidget.java
parentaadcd2bc3a457ed0dfc03ad7be5ea9a3500c27c4 (diff)
downloadRoughlyEnoughItems-1764648e4f536b2e6ac1b7d1cb3c3fb60e206b29.tar.gz
RoughlyEnoughItems-1764648e4f536b2e6ac1b7d1cb3c3fb60e206b29.tar.bz2
RoughlyEnoughItems-1764648e4f536b2e6ac1b7d1cb3c3fb60e206b29.zip
remove old Rectangle
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java/me/shedaniel/rei/impl/widgets/PanelWidget.java')
-rw-r--r--src/main/java/me/shedaniel/rei/impl/widgets/PanelWidget.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/me/shedaniel/rei/impl/widgets/PanelWidget.java b/src/main/java/me/shedaniel/rei/impl/widgets/PanelWidget.java
index 833ac6557..cb2047004 100644
--- a/src/main/java/me/shedaniel/rei/impl/widgets/PanelWidget.java
+++ b/src/main/java/me/shedaniel/rei/impl/widgets/PanelWidget.java
@@ -44,7 +44,7 @@ public final class PanelWidget extends Panel {
private static final Identifier CHEST_GUI_TEXTURE_DARK = new Identifier("roughlyenoughitems", "textures/gui/recipecontainer_dark.png");
private static final PanelWidget TEMP = new PanelWidget(new Rectangle());
- private me.shedaniel.math.api.Rectangle bounds;
+ private Rectangle bounds;
private int color = -1;
private int innerColor = REIHelper.getInstance().isDarkThemeEnabled() ? -13750738 : -3750202;
private int xTextureOffset = 0;
@@ -57,11 +57,11 @@ public final class PanelWidget extends Panel {
}
public PanelWidget(@NotNull Rectangle bounds) {
- this.bounds = new me.shedaniel.math.api.Rectangle(bounds);
+ this.bounds = Objects.requireNonNull(bounds);
}
public static void render(@NotNull Rectangle bounds, int color) {
- TEMP.bounds.setBounds(bounds);
+ TEMP.bounds.setBounds(Objects.requireNonNull(bounds));
TEMP.color = color;
TEMP.render(0, 0, 0);
}
@@ -118,7 +118,7 @@ public final class PanelWidget extends Panel {
@NotNull
@Override
- public me.shedaniel.math.api.Rectangle getBounds() {
+ public Rectangle getBounds() {
return bounds;
}