public class InventoryClickEvent extends Object implements InventoryEvent, Cancellable
| Constructor and Description |
|---|
InventoryClickEvent(Inventory inventory,
int slot,
ItemStack sourceItem,
ItemStack heldItem,
ItemStack leftItem) |
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
getHeldItem() |
Inventory |
getInventory() |
ItemStack |
getLeftItem() |
int |
getSlot() |
ItemStack |
getSourceItem() |
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelpublic int getSlot()
public ItemStack getSourceItem()
public ItemStack getHeldItem()
public ItemStack getLeftItem()
public Inventory getInventory()
getInventory in interface InventoryEventpublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true to cancel the event.Copyright © 2017–2019 NukkitX. All rights reserved.