public class InventoryCreativeEvent extends InventoryClickEvent
Event.Resulttransaction| Constructor and Description | 
|---|
InventoryCreativeEvent(@NotNull InventoryView what,
                      @NotNull InventoryType.SlotType type,
                      int slot,
                      @NotNull ItemStack newItem)  | 
| Modifier and Type | Method and Description | 
|---|---|
@NotNull ItemStack | 
getCursor()
Gets the current ItemStack on the cursor. 
 | 
void | 
setCursor(@NotNull 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
                              @NotNull InventoryView what,
                              @NotNull
                              @NotNull InventoryType.SlotType type,
                              int slot,
                              @NotNull
                              @NotNull ItemStack newItem)
@NotNull public @NotNull ItemStack getCursor()
InventoryClickEventgetCursor in class InventoryClickEventpublic void setCursor(@NotNull
                      @NotNull ItemStack item)
InventoryClickEventsetCursor in class InventoryClickEventitem - the new cursor itemCopyright © 2021. All rights reserved.