public class InventoryCreativeEvent extends InventoryClickEvent
Event.Resulttransaction| Constructor and Description |
|---|
InventoryCreativeEvent(InventoryView what,
InventoryType.SlotType type,
int slot,
ItemStack newItem) |
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
getCursor()
Gets the current ItemStack on the cursor.
|
void |
setCursor(ItemStack item)
Sets the item on the cursor.
|
getAction, getClick, getClickedInventory, getCurrentItem, getHandlerList, getHandlers, getHotbarButton, getRawSlot, getSlot, getSlotType, isLeftClick, isRightClick, isShiftClick, setCurrentItemgetResult, getWhoClicked, isCancelled, setCancelled, setResultgetInventory, getView, getViewersgetEventName, isAsynchronouspublic 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 © 2022. All rights reserved.