From da937ad6be1f3ecae3c33175b26d480c9b3f7d4b Mon Sep 17 00:00:00 2001 From: "Luis C.M" <42545778+c0508383@users.noreply.github.com> Date: Sat, 18 Mar 2023 15:52:50 -0500 Subject: [PATCH] Fixed custom gui slot behavior --- java/noppes/npcs/api/gui/ICustomGui.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/java/noppes/npcs/api/gui/ICustomGui.java b/java/noppes/npcs/api/gui/ICustomGui.java index ed93d2d..e6bba34 100644 --- a/java/noppes/npcs/api/gui/ICustomGui.java +++ b/java/noppes/npcs/api/gui/ICustomGui.java @@ -26,8 +26,12 @@ public interface ICustomGui { void setDoesPauseGame(boolean pauseGame); + boolean doesPauseGame(); + void setBackgroundTexture(String resourceLocation); + String getBackgroundTexture(); + IButton addButton(int id, String text, int x, int y); IButton addButton(int id, String text, int x, int y, int width, int height); @@ -52,16 +56,16 @@ public interface ICustomGui { ILine addLine(int id, int x1, int y1, int x2, int y2); + IItemSlot addItemSlot(int id, int x, int y); + + IItemSlot addItemSlot(int id, int x, int y, IItemStack itemStack); + @Deprecated IItemSlot addItemSlot(int x, int y); @Deprecated IItemSlot addItemSlot(int x, int y, IItemStack itemStack); - IItemSlot addItemSlot(int id, int x, int y); - - IItemSlot addItemSlot(int id, int x, int y, IItemStack itemStack); - void showPlayerInventory(int x, int y); ICustomGuiComponent getComponent(int id);