Added CustomGuiEvent.SlotClickEvent.

This commit is contained in:
Luis C.M committed 2022-06-18 12:52:23 -05:00
1 parent cc1c6c1910
commit b45cad77dd
5 files changed
+55

No files matched your search

@@ -512,6 +512,11 @@ public class EventHooks {
CustomGuiController.onSlotChange(event);
}
public static boolean onCustomGuiSlotClicked(IPlayer player, ICustomGui gui, int slotId, int dragType, int clickType) {
CustomGuiEvent.SlotClickEvent event = new CustomGuiEvent.SlotClickEvent(player, gui, slotId, player.getOpenContainer().getSlot(slotId), dragType, clickType);
return CustomGuiController.onSlotClick(event);
}
public static void onCustomGuiUnfocused(IPlayer player, ICustomGui gui, int textfieldId) {
CustomGuiEvent.UnfocusedEvent event = new CustomGuiEvent.UnfocusedEvent(player, gui, textfieldId);
CustomGuiController.onCustomGuiUnfocused(event);