public class PrepareAnvilEvent extends PrepareResultEvent
Event.Resulttransaction| Constructor | Description | 
|---|---|
| PrepareAnvilEvent(InventoryView inventory,
                 ItemStack result) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| AnvilInventory | getInventory() | Gets the primary Inventory involved in this transaction | 
| ItemStack | getResult() | Get result item, may be null. | 
| void | setResult(ItemStack result) | 
callEvent, getEventName, isAsynchronousgetView, getViewersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHandlerList, getHandlerspublic PrepareAnvilEvent(@NotNull InventoryView inventory, @Nullable ItemStack result)
@NotNull public AnvilInventory getInventory()
InventoryEventgetInventory in class InventoryEvent@Nullable public ItemStack getResult()
getResult in class PrepareResultEventpublic void setResult(@Nullable ItemStack result)
setResult in class PrepareResultEventCopyright © 2020. All rights reserved.