Cancellable
public class InventoryCreativeEvent extends InventoryClickEvent
Event.Result
transaction
Constructor | Description |
---|---|
InventoryCreativeEvent(@NotNull InventoryView what,
@NotNull InventoryType.SlotType type,
int slot,
@NotNull ItemStack newItem) |
Modifier and Type | Method | Description |
---|---|---|
@NotNull ItemStack |
getCursor() |
Gets the current ItemStack on the cursor.
|
void |
setCursor(@NotNull ItemStack item) |
Sets the item on the cursor.
|
callEvent, getEventName, isAsynchronous
getAction, getClick, getClickedInventory, getCurrentItem, getHandlerList, getHandlers, getHotbarButton, getRawSlot, getSlot, getSlotType, isLeftClick, isRightClick, isShiftClick, setCurrentItem
getInventory, getView, getViewers
getResult, getWhoClicked, isCancelled, setCancelled, setResult
public InventoryCreativeEvent(@NotNull @NotNull InventoryView what, @NotNull @NotNull InventoryType.SlotType type, int slot, @NotNull @NotNull ItemStack newItem)
@NotNull public @NotNull ItemStack getCursor()
InventoryClickEvent
getCursor
in class InventoryClickEvent
public void setCursor(@NotNull @NotNull ItemStack item)
InventoryClickEvent
setCursor
in class InventoryClickEvent
item
- the new cursor itemCopyright © 2020. All rights reserved.