Interface UpdateAnvilEvent

All Superinterfaces:
Cancellable, Event

public interface UpdateAnvilEvent extends Event, Cancellable
Fires whenever the left and right slots of an anvil are filled and a new result is computed.
  • Method Details

    • inventory

      Inventory inventory()
      Gets the Inventory.
      Returns:
      The inventory
    • itemName

      String itemName()
      Returns the new item name.
      Returns:
      The new item name
    • left

      Returns the left input item.
      Returns:
      The left input item
    • right

      Returns the right input item.
      Returns:
      The right input item
    • result

      Returns the transaction for the resulting item.
      Returns:
      The transaction for the resulting item.
    • costs

      Returns the transaction for the repair costs.
      Returns:
      The transaction for the repair costs.