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 Detail

      • itemName

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

        ItemStackSnapshot left()
        Returns the left input item.
        Returns:
        The left input item
      • right

        ItemStackSnapshot right()
        Returns the right input item.
        Returns:
        The right input item
      • result

        Transaction<ItemStackSnapshot> result()
        Returns the transaction for the resulting item.
        Returns:
        The transaction for the resulting item.
      • costs

        Transaction<AnvilCost> costs()
        Returns the transaction for the repair costs.
        Returns:
        The transaction for the repair costs.