public class InventoryClickEvent extends PlayerEvent implements CancellableEvent
Constructor and Description |
---|
InventoryClickEvent(Player p,
InventoryAction action,
int slot,
ItemStack item,
Inventory inv) |
Modifier and Type | Method and Description |
---|---|
InventoryAction |
getAction() |
Inventory |
getClickedInventory() |
@Nullable ItemStack |
getCurrentItem() |
int |
getSlot() |
boolean |
isCancelled() |
void |
setCancelled(boolean cancel) |
getPlayer
public InventoryClickEvent(Player p, InventoryAction action, int slot, ItemStack item, Inventory inv)
public InventoryAction getAction()
public int getSlot()
public @Nullable ItemStack getCurrentItem()
public Inventory getClickedInventory()
public boolean isCancelled()
isCancelled
in interface CancellableEvent
public void setCancelled(boolean cancel)
setCancelled
in interface CancellableEvent