diff options
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/widget/PanelWidget.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/gui/widget/PanelWidget.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/widget/PanelWidget.java b/src/main/java/me/shedaniel/rei/gui/widget/PanelWidget.java index 54fdb5314..e6b534dcd 100644 --- a/src/main/java/me/shedaniel/rei/gui/widget/PanelWidget.java +++ b/src/main/java/me/shedaniel/rei/gui/widget/PanelWidget.java @@ -20,6 +20,7 @@ public class PanelWidget extends WidgetWithBounds { private static final Identifier CHEST_GUI_TEXTURE = new Identifier("roughlyenoughitems", "textures/gui/recipecontainer.png"); 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 Rectangle bounds; private int color = -1; @@ -37,6 +38,12 @@ public class PanelWidget extends WidgetWithBounds { return Collections.emptyList(); } + public static void render(Rectangle bounds, int color) { + TEMP.bounds = bounds; + TEMP.color = color; + TEMP.render(); + } + public void render() { render(0, 0, 0); } |
