Class AnvilTakeResultEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.inventory.InventoryEvent
org.purpurmc.purpur.event.inventory.AnvilTakeResultEvent
Called when a player takes the result item out of an anvil
-
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
ConstructorDescriptionAnvilTakeResultEvent
(@NotNull HumanEntity player, @NotNull InventoryView view, @NotNull ItemStack result) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull HandlerList
Gets the primary Inventory involved in this transactionMethods inherited from class org.bukkit.event.inventory.InventoryEvent
getView, getViewers
Methods inherited from class org.bukkit.event.Event
asynchronous, callEvent, getEventName, isAsynchronous
-
Constructor Details
-
AnvilTakeResultEvent
public AnvilTakeResultEvent(@NotNull @NotNull HumanEntity player, @NotNull @NotNull InventoryView view, @NotNull @NotNull ItemStack result)
-
-
Method Details
-
getPlayer
-
getResult
-
getInventory
Description copied from class:InventoryEvent
Gets the primary Inventory involved in this transaction- Overrides:
getInventory
in classInventoryEvent
- Returns:
- The upper inventory.
-
getHandlers
- Overrides:
getHandlers
in classInventoryEvent
-
getHandlerList
-