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, getClickedInventory, 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
getCursor
クラス内 InventoryClickEvent
public void setCursor(ItemStack item)
InventoryClickEvent
setCursor
クラス内 InventoryClickEvent
item
- the new cursor itemCopyright © 2016. All rights reserved.