public class PrepareAnvilEvent extends PrepareResultEvent
Event.Result
transaction
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, isAsynchronous
getView, getViewers
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHandlerList, getHandlers
public PrepareAnvilEvent(@NotNull InventoryView inventory, @Nullable ItemStack result)
@NotNull public AnvilInventory getInventory()
InventoryEvent
getInventory
in class InventoryEvent
@Nullable public ItemStack getResult()
getResult
in class PrepareResultEvent
public void setResult(@Nullable ItemStack result)
setResult
in class PrepareResultEvent
Copyright © 2020. All rights reserved.