public class InventoryCreativeEvent extends InventoryClickEvent
Event.Result
transaction
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, setCurrentItem
getResult, getWhoClicked, isCancelled, setCancelled, setResult
getInventory, getView, getViewers
callEvent, getEventName, isAsynchronous
public InventoryCreativeEvent(@NotNull InventoryView what, @NotNull InventoryType.SlotType type, int slot, @NotNull ItemStack newItem)
@NotNull public ItemStack getCursor()
InventoryClickEvent
getCursor
in class InventoryClickEvent
public void setCursor(@NotNull ItemStack item)
InventoryClickEvent
setCursor
in class InventoryClickEvent
item
- the new cursor itemCopyright © 2022. All rights reserved.