public class PrepareAnvilEvent extends InventoryEvent
Event.Result
transaction
Constructor | Description |
---|---|
PrepareAnvilEvent(@NotNull InventoryView inventory,
@Nullable ItemStack result) |
Modifier and Type | Method | Description |
---|---|---|
static @NotNull HandlerList |
getHandlerList() |
|
@NotNull HandlerList |
getHandlers() |
|
@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) |
getEventName, isAsynchronous
getView, getViewers
public PrepareAnvilEvent(@NotNull @NotNull InventoryView inventory, @Nullable @Nullable ItemStack result)
@NotNull public @NotNull AnvilInventory getInventory()
InventoryEvent
getInventory
in class InventoryEvent
@Nullable public @Nullable ItemStack getResult()
public void setResult(@Nullable @Nullable ItemStack result)
@NotNull public @NotNull HandlerList getHandlers()
getHandlers
in class InventoryEvent
@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2020. All rights reserved.