Package org.bukkit.event.inventory
Class PrepareSmithingEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.inventory.InventoryEvent
org.bukkit.event.inventory.PrepareSmithingEvent
public class PrepareSmithingEvent extends InventoryEvent
Called when an item is put in a slot for upgrade by a Smithing Table.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PrepareSmithingEvent(InventoryView inventory, ItemStack result)
-
Method Summary
Modifier and Type Method Description static HandlerList
getHandlerList()
HandlerList
getHandlers()
SmithingInventory
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
-