From e92abcf07960ed3d9b4c3a7aff1a42068f1e34d4 Mon Sep 17 00:00:00 2001 From: NichtStudioCode <51272202+NichtStudioCode@users.noreply.github.com> Date: Sun, 29 Aug 2021 17:56:08 +0200 Subject: [PATCH] Added regions to BaseGUI --- .../src/main/java/de/studiocode/invui/gui/impl/BaseGUI.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/InvUI/src/main/java/de/studiocode/invui/gui/impl/BaseGUI.java b/InvUI/src/main/java/de/studiocode/invui/gui/impl/BaseGUI.java index dac4ae2..0902ca1 100644 --- a/InvUI/src/main/java/de/studiocode/invui/gui/impl/BaseGUI.java +++ b/InvUI/src/main/java/de/studiocode/invui/gui/impl/BaseGUI.java @@ -79,6 +79,7 @@ public abstract class BaseGUI implements GUI, Controllable { } else event.setCancelled(true); // Only VISlotElements have allowed interactions } + // region virtual inventories private void handleVISlotElementClick(VISlotElement element, InventoryClickEvent event) { // these actions are ignored as they don't modify the inventory InventoryAction action = event.getAction(); @@ -353,6 +354,7 @@ public abstract class BaseGUI implements GUI, Controllable { return virtualInventories; } + // endregion @Override public void handleSlotElementUpdate(GUI child, int slotIndex) { @@ -571,8 +573,7 @@ public abstract class BaseGUI implements GUI, Controllable { return size; } - // -- coordinate-based methods -- - + // region coordinate-based methods @Override public void setSlotElement(int x, int y, SlotElement slotElement) { setSlotElement(convToIndex(x, y), slotElement); @@ -687,5 +688,6 @@ public abstract class BaseGUI implements GUI, Controllable { slotIndex++; } } + // endregion }