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