Package cn.nukkit.event.inventory
Class EnchantItemEvent
java.lang.Object
cn.nukkit.event.Event
cn.nukkit.event.inventory.InventoryEvent
cn.nukkit.event.inventory.EnchantItemEvent
- All Implemented Interfaces:
Cancellable
-
Field Summary
Fields inherited from class cn.nukkit.event.inventory.InventoryEvent
inventory
-
Constructor Summary
ConstructorDescriptionEnchantItemEvent
(EnchantInventory inventory, Item oldItem, Item newItem, int cost, Player p) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
int
void
setEnchanter
(Player enchanter) void
setNewItem
(Item newItem) void
setOldItem
(Item oldItem) void
setXpCost
(int xpCost) Methods inherited from class cn.nukkit.event.inventory.InventoryEvent
getInventory, getViewers
Methods inherited from class cn.nukkit.event.Event
getEventName, isCancelled, setCancelled, setCancelled
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cn.nukkit.event.Cancellable
isCancelled, setCancelled, setCancelled
-
Constructor Details
-
EnchantItemEvent
@Since("1.3.1.0-PN") public EnchantItemEvent(EnchantInventory inventory, Item oldItem, Item newItem, int cost, Player p)
-
-
Method Details
-
getHandlers
-
getOldItem
-
setOldItem
-
getNewItem
-
setNewItem
-
getXpCost
-
setXpCost
-
getEnchanter
-
setEnchanter
-