Skip to content

Commit

Permalink
共通のシフトクリック追加
Browse files Browse the repository at this point in the history
  • Loading branch information
Arisa9006 committed Nov 16, 2024
1 parent 8fcdbb5 commit 10aaecf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/java/dev/felnull/bettergui/core/GUIItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -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){}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/dev/felnull/bettergui/core/GUIPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ public void onOutsideWindowRightClick(InventoryClickEvent e){}
public void onOutsideWindowLeftClick(InventoryClickEvent e){}

public void onOutsideWindowClick(InventoryClickEvent e){}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 10aaecf

Please sign in to comment.