Class PrepareResultEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.inventory.InventoryEvent
com.destroystokyo.paper.event.inventory.PrepareResultEvent
- Direct Known Subclasses:
PrepareAnvilEvent
,PrepareGrindstoneEvent
,PrepareSmithingEvent
Called when an item is put in an inventory containing a result slot
-
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
ConstructorDescriptionPrepareResultEvent(@NotNull InventoryView inventory, @Nullable ItemStack result)
-
Method Summary
Methods inherited from class org.bukkit.event.inventory.InventoryEvent
getInventory, getView, getViewers
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PrepareResultEvent
-
-
Method Details
-
getResult
Get result item, may be null.- Returns:
- result item
-
setResult
-
getHandlers
- Overrides:
getHandlers
in classInventoryEvent
-
getHandlerList
-