类 EnchantItemEvent
java.lang.Object
cn.nukkit.event.Event
cn.nukkit.event.inventory.InventoryEvent
cn.nukkit.event.inventory.EnchantItemEvent
- 所有已实现的接口:
Cancellable
-
字段概要
从类继承的字段 cn.nukkit.event.inventory.InventoryEvent
inventory
-
构造器概要
-
方法概要
修饰符和类型方法说明static HandlerList
int
void
setEnchanter
(Player enchanter) void
setNewItem
(Item newItem) void
setOldItem
(Item oldItem) void
setXpCost
(int xpCost) 从类继承的方法 cn.nukkit.event.inventory.InventoryEvent
getInventory, getViewers
从类继承的方法 cn.nukkit.event.Event
getEventName, isCancelled, setCancelled, setCancelled
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 cn.nukkit.event.Cancellable
isCancelled, setCancelled, setCancelled
-
构造器详细资料
-
EnchantItemEvent
@Since("1.3.1.0-PN") public EnchantItemEvent(EnchantInventory inventory, Item oldItem, Item newItem, int cost, Player p)
-
-
方法详细资料
-
getHandlers
-
getOldItem
-
setOldItem
-
getNewItem
-
setNewItem
-
getXpCost
-
setXpCost
-
getEnchanter
-
setEnchanter
-