Package eu.xap3y.xagui.events
Class GuiClickEvent
Object
Event
InventoryEvent
InventoryInteractEvent
InventoryClickEvent
GuiClickEvent
- All Implemented Interfaces:
Cancellable
public class GuiClickEvent
extends InventoryClickEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Field Summary
Fields inherited from class InventoryEvent
transaction -
Constructor Summary
ConstructorsConstructorDescriptionGuiClickEvent(InventoryClickEvent e) GuiClickEvent(InventoryView view, InventoryType.SlotType slotType, int slot, ClickType click, InventoryAction action) GuiClickEvent(InventoryView view, InventoryType.SlotType slotType, int slot, ClickType click, InventoryAction action, int hotbarButton) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull HandlerList@NotNull HandlerListPlayerConvenience accessor casting getWhoClicked() to Player.Methods inherited from class InventoryClickEvent
getAction, getClick, getClickedInventory, getCurrentItem, getCursor, getHotbarButton, getRawSlot, getSlot, getSlotType, isLeftClick, isRightClick, isShiftClick, setCurrentItem, setCursorMethods inherited from class InventoryInteractEvent
getResult, getWhoClicked, isCancelled, setCancelled, setResultMethods inherited from class InventoryEvent
getInventory, getView, getViewersMethods inherited from class Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
GuiClickEvent
public GuiClickEvent(InventoryView view, InventoryType.SlotType slotType, int slot, ClickType click, InventoryAction action) -
GuiClickEvent
public GuiClickEvent(InventoryView view, InventoryType.SlotType slotType, int slot, ClickType click, InventoryAction action, int hotbarButton) -
GuiClickEvent
public GuiClickEvent(InventoryClickEvent e)
-
-
Method Details
-
getPlayer
public Player getPlayer()Convenience accessor casting getWhoClicked() to Player. This will throw ClassCastException if the clicker is not a Player. -
getHandlers
@NotNull public @NotNull HandlerList getHandlers()- Overrides:
getHandlersin classInventoryClickEvent
-
getHandlerList
@NotNull public static @NotNull HandlerList getHandlerList()
-