Cancellablepublic class InventoryCreativeEvent extends InventoryClickEvent
Event.Resulttransaction| Constructor | Description |
|---|---|
InventoryCreativeEvent(InventoryView what,
InventoryType.SlotType type,
int slot,
ItemStack newItem) |
| Modifier and Type | Method | Description |
|---|---|---|
ItemStack |
getCursor() |
Gets the current ItemStack on the cursor.
|
void |
setCursor(ItemStack item) |
Sets the item on the cursor.
|
getEventName, isAsynchronousgetAction, getClick, getClickedInventory, getCurrentItem, getHandlerList, getHandlers, getHotbarButton, getRawSlot, getSlot, getSlotType, isLeftClick, isRightClick, isShiftClick, setCurrentItemgetInventory, getView, getViewersgetResult, getWhoClicked, isCancelled, setCancelled, setResultpublic InventoryCreativeEvent(@NotNull
InventoryView what,
@NotNull
InventoryType.SlotType type,
int slot,
@NotNull
ItemStack newItem)
@NotNull public ItemStack getCursor()
InventoryClickEventgetCursor in class InventoryClickEventpublic void setCursor(@NotNull
ItemStack item)
InventoryClickEventsetCursor in class InventoryClickEventitem - the new cursor itemCopyright © 2020. All rights reserved.