public class InventoryCreativeEvent extends InventoryClickEvent
Event.Resulttransaction| 构造器和说明 |
|---|
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, setCurrentItemgetResult, getWhoClicked, isCancelled, setCancelled, setResultgetInventory, getView, getViewersgetEventName, isAsynchronouspublic InventoryCreativeEvent(InventoryView what, InventoryType.SlotType type, int slot, ItemStack newItem)
public ItemStack getCursor()
InventoryClickEvent原文:Gets the current ItemStack on the cursor.
getCursor 在类中 InventoryClickEventpublic void setCursor(ItemStack item)
InventoryClickEventsetCursor 在类中 InventoryClickEventitem - the new cursor item