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
-
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 benull
.- Overrides:
getResult
in classPrepareInventoryResultEvent
- Returns:
- result item
-
setResult
Set result item, may benull
.- Overrides:
setResult
in classPrepareInventoryResultEvent
- Parameters:
result
- result item
-