diff --git a/src/main/java/dev/felnull/bettergui/core/GUIItem.java b/src/main/java/dev/felnull/bettergui/core/GUIItem.java index fd9e997..4f9487d 100644 --- a/src/main/java/dev/felnull/bettergui/core/GUIItem.java +++ b/src/main/java/dev/felnull/bettergui/core/GUIItem.java @@ -21,6 +21,7 @@ public void onRightClick(InventoryClickEvent e){} public void onLeftClick(InventoryClickEvent e){} public void onMiddleClick(InventoryClickEvent e){} public void onDoubleClick(InventoryClickEvent e){} + public void onShiftClick(InventoryClickEvent e){} public void onShiftRightClick(InventoryClickEvent e){} public void onShiftLeftClick(InventoryClickEvent e){} public void onDropClick(InventoryClickEvent e){} diff --git a/src/main/java/dev/felnull/bettergui/core/GUIPage.java b/src/main/java/dev/felnull/bettergui/core/GUIPage.java index e5eda47..b5faa0e 100644 --- a/src/main/java/dev/felnull/bettergui/core/GUIPage.java +++ b/src/main/java/dev/felnull/bettergui/core/GUIPage.java @@ -59,5 +59,5 @@ public void onOutsideWindowRightClick(InventoryClickEvent e){} public void onOutsideWindowLeftClick(InventoryClickEvent e){} public void onOutsideWindowClick(InventoryClickEvent e){} - + } diff --git a/src/main/java/dev/felnull/bettergui/listener/GUIClickListener.java b/src/main/java/dev/felnull/bettergui/listener/GUIClickListener.java index 4d6ea5a..07aa14b 100644 --- a/src/main/java/dev/felnull/bettergui/listener/GUIClickListener.java +++ b/src/main/java/dev/felnull/bettergui/listener/GUIClickListener.java @@ -37,9 +37,11 @@ public void onClick(InventoryClickEvent e){ item.onDoubleClick(e); break; case SHIFT_RIGHT: + item.onShiftClick(e); item.onShiftRightClick(e); break; case SHIFT_LEFT: + item.onShiftClick(e); item.onShiftLeftClick(e); break; case DROP: