Package org.bukkit.event.inventory
Class PrepareSmithingEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.inventory.InventoryEvent
com.destroystokyo.paper.event.inventory.PrepareResultEvent
org.bukkit.event.inventory.PrepareSmithingEvent
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
ConstructorDescriptionPrepareSmithingEvent(@NotNull InventoryView inventory, @Nullable ItemStack result)
-
Method Summary
Modifier and TypeMethodDescriptionGets the primary Inventory involved in this transactionGet result item, may be null.void
Methods inherited from class com.destroystokyo.paper.event.inventory.PrepareResultEvent
getHandlerList, getHandlers
Methods inherited from class org.bukkit.event.inventory.InventoryEvent
getView, getViewers
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PrepareSmithingEvent
-
-
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.- Overrides:
getResult
in classPrepareResultEvent
- Returns:
- result item
-
setResult
- Overrides:
setResult
in classPrepareResultEvent
-