Package org.bukkit.event.inventory
Class PrepareAnvilEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.inventory.InventoryEvent
org.bukkit.event.inventory.PrepareAnvilEvent
public class PrepareAnvilEvent extends InventoryEvent
Called when an item is put in a slot for repair by an anvil.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PrepareAnvilEvent(InventoryView inventory, ItemStack result)
-
Method Summary
Modifier and Type Method Description static HandlerList
getHandlerList()
HandlerList
getHandlers()
AnvilInventory
getInventory()
Gets the primary Inventory involved in this transactionItemStack
getResult()
Get result item, may be null.void
setResult(ItemStack result)
-
Constructor Details
-
Method Details
-
getInventory
Description copied from class:InventoryEvent
Gets the primary Inventory involved in this transaction- Overrides:
getInventory
in classInventoryEvent
- Returns:
- The upper inventory.
-
getResult
Get result item, may be null.- Returns:
- result item
-
setResult
-
getHandlers
- Overrides:
getHandlers
in classInventoryEvent
-
getHandlerList
-