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
-
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
-
Field Summary
-
Fields inherited from class org.bukkit.event.inventory.InventoryEvent
transaction
-
-
Constructor Summary
Constructors Constructor Description PrepareSmithingEvent(InventoryView inventory, ItemStack result)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HandlerListgetHandlerList()HandlerListgetHandlers()SmithingInventorygetInventory()Gets the primary Inventory involved in this transactionItemStackgetResult()Get result item, may be null.voidsetResult(ItemStack result)-
Methods inherited from class org.bukkit.event.inventory.InventoryEvent
getView, getViewers
-
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
-
-
-
Constructor Detail
-
PrepareSmithingEvent
public PrepareSmithingEvent(@NotNull InventoryView inventory, @Nullable ItemStack result)
-
-
Method Detail
-
getInventory
@NotNull public SmithingInventory getInventory()
Description copied from class:InventoryEventGets the primary Inventory involved in this transaction- Overrides:
getInventoryin classInventoryEvent- Returns:
- The upper inventory.
-
getHandlers
@NotNull public HandlerList getHandlers()
- Overrides:
getHandlersin classInventoryEvent
-
getHandlerList
@NotNull public static HandlerList getHandlerList()
-
-