Cancellablepublic class InventoryCreativeEvent extends InventoryClickEvent
Event.Resulttransaction| 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. | 
getEventName, isAsynchronousgetAction, getClick, getClickedInventory, getCurrentItem, getHandlerList, getHandlers, getHotbarButton, getRawSlot, getSlot, getSlotType, isLeftClick, isRightClick, isShiftClick, setCurrentItemgetInventory, getView, getViewersgetResult, getWhoClicked, isCancelled, setCancelled, setResultpublic 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 © 2020. All rights reserved.