public class InventoryClickEvent extends Object implements InventoryEvent, Cancellable
| Constructor and Description |
|---|
InventoryClickEvent(Inventory inventory,
int slot,
ItemInstance sourceItem,
ItemInstance heldItem,
ItemInstance leftItem) |
| Modifier and Type | Method and Description |
|---|---|
ItemInstance |
getHeldItem() |
Inventory |
getInventory() |
ItemInstance |
getLeftItem() |
int |
getSlot() |
ItemInstance |
getSourceItem() |
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
public InventoryClickEvent(Inventory inventory, int slot, ItemInstance sourceItem, ItemInstance heldItem, ItemInstance leftItem)
public int getSlot()
public ItemInstance getSourceItem()
public ItemInstance getHeldItem()
public ItemInstance 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–2018 NukkitX. All rights reserved.