Class PrepareResultEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.inventory.InventoryEvent
org.bukkit.event.inventory.PrepareInventoryResultEvent
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.PrepareInventoryResultEvent
getHandlerList, getHandlers
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.- Overrides:
getResult
in classPrepareInventoryResultEvent
- Returns:
- result item
-
setResult
Set result item, may be null.- Overrides:
setResult
in classPrepareInventoryResultEvent
- Parameters:
result
- result item
-