From 10aaecf9eb5a599b90bd7dff3683a24de12f7c1b Mon Sep 17 00:00:00 2001 From: miyabi0333 <57523862+Arisa9006@users.noreply.github.com> Date: Sun, 17 Nov 2024 03:48:19 +0900 Subject: [PATCH] =?UTF-8?q?=E5=85=B1=E9=80=9A=E3=81=AE=E3=82=B7=E3=83=95?= =?UTF-8?q?=E3=83=88=E3=82=AF=E3=83=AA=E3=83=83=E3=82=AF=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/dev/felnull/bettergui/core/GUIItem.java | 1 + src/main/java/dev/felnull/bettergui/core/GUIPage.java | 2 +- .../java/dev/felnull/bettergui/listener/GUIClickListener.java | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) 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: