public class InventoryCreativeEvent extends InventoryClickEvent
Event.Result
transaction
构造器和说明 |
---|
InventoryCreativeEvent(InventoryView what,
InventoryType.SlotType type,
int slot,
ItemStack newItem) |
限定符和类型 | 方法和说明 |
---|---|
ItemStack |
getCursor()
获取当前光标所指的物品
原文:Gets the current ItemStack on the cursor.
|
void |
setCursor(ItemStack item)
Sets the item on the cursor.
|
getAction, getClick, getCurrentItem, getHandlerList, getHandlers, getHotbarButton, getRawSlot, getSlot, getSlotType, isLeftClick, isRightClick, isShiftClick, setCurrentItem
getResult, getWhoClicked, isCancelled, setCancelled, setResult
getInventory, getView, getViewers
getEventName, isAsynchronous
public InventoryCreativeEvent(InventoryView what, InventoryType.SlotType type, int slot, ItemStack newItem)
public ItemStack getCursor()
InventoryClickEvent
原文:Gets the current ItemStack on the cursor.
getCursor
在类中 InventoryClickEvent
public void setCursor(ItemStack item)
InventoryClickEvent
setCursor
在类中 InventoryClickEvent
item
- the new cursor item