Package com.loohp.limbo.events.inventory
Class InventoryClickEvent
java.lang.Object
com.loohp.limbo.events.Event
com.loohp.limbo.events.inventory.InventoryEvent
com.loohp.limbo.events.inventory.InventoryClickEvent
- All Implemented Interfaces:
Cancellable
-
Constructor Summary
ConstructorsConstructorDescriptionInventoryClickEvent
(InventoryView view, InventoryType.SlotType type, int rawSlot, ClickType click, InventoryAction action) InventoryClickEvent
(InventoryView view, InventoryType.SlotType type, int rawSlot, ClickType click, InventoryAction action, int hotbarKey) -
Method Summary
Modifier and TypeMethodDescriptiongetClick()
int
int
getType()
int
boolean
void
setCancelled
(boolean cancelled) void
setCarriedItem
(ItemStack stack) Deprecated.void
setCurrentItem
(ItemStack stack) Methods inherited from class com.loohp.limbo.events.inventory.InventoryEvent
getClickedInventory, getPlayer, getView
-
Constructor Details
-
InventoryClickEvent
public InventoryClickEvent(InventoryView view, InventoryType.SlotType type, int rawSlot, ClickType click, InventoryAction action) -
InventoryClickEvent
public InventoryClickEvent(InventoryView view, InventoryType.SlotType type, int rawSlot, ClickType click, InventoryAction action, int hotbarKey)
-
-
Method Details
-
getClick
-
getAction
-
getType
-
getWhichSlot
public int getWhichSlot() -
getRawSlot
public int getRawSlot() -
getHotbarKey
public int getHotbarKey() -
getCarriedItem
-
setCarriedItem
Deprecated. -
getCurrentItem
-
setCurrentItem
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelled
in interfaceCancellable
-