ICustomGui:

-Added IDs to custom GUI slots.
This commit is contained in:
Luis C.M committed 2023-03-18 03:04:46 -05:00
1 parent 2c012f2693
commit 586c451f06
7 files changed
+52 -19

No files matched your search

@@ -12,12 +12,14 @@ import noppes.npcs.client.gui.custom.GuiCustom;
public class CustomGuiSlot extends Slot {
public boolean clientSide;
public int slotNumber;
public final int slotNumber;
public final int guiSlotId;
public CustomGuiSlot(IInventory inventoryIn, int index, int xPosition, int yPosition, boolean clientSide) {
public CustomGuiSlot(IInventory inventoryIn, int index, int guiSlotId, int xPosition, int yPosition, boolean clientSide) {
super(inventoryIn, index, xPosition, yPosition);
this.clientSide = clientSide;
this.slotNumber = index;
this.guiSlotId = guiSlotId;
}
public void onSlotChanged() {