public class PrepareAnvilEvent extends InventoryEvent
Event.Resulttransaction| 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, isAsynchronousgetView, getViewerspublic PrepareAnvilEvent(@NotNull
                         @NotNull InventoryView inventory,
                         @Nullable
                         @Nullable ItemStack result)
@NotNull public @NotNull AnvilInventory getInventory()
InventoryEventgetInventory 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.