public class PrepareAnvilEvent extends InventoryEvent
Event.Result
transaction
Constructor and Description |
---|
PrepareAnvilEvent(InventoryView inventory,
ItemStack result) |
Modifier and Type | Method and Description |
---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
AnvilInventory |
getInventory()
Gets the primary Inventory involved in this transaction
|
ItemStack |
getResult()
Get result item, may be null.
|
void |
setResult(ItemStack result) |
getView, getViewers
callEvent, getEventName, isAsynchronous
public PrepareAnvilEvent(@NotNull InventoryView inventory, @Nullable ItemStack result)
@NotNull public AnvilInventory getInventory()
InventoryEvent
getInventory
in class InventoryEvent
@Nullable public ItemStack getResult()
public void setResult(@Nullable ItemStack result)
@NotNull public HandlerList getHandlers()
getHandlers
in class InventoryEvent
@NotNull public static HandlerList getHandlerList()
Copyright © 2022. All rights reserved.