Interface Repairable

All Superinterfaces:
Cloneable, ConfigurationSerializable, ItemMeta, PersistentDataHolder

public interface Repairable extends ItemMeta
Represents an item that can be repaired at an anvil.
  • Method Details

    • hasRepairCost

      boolean hasRepairCost()
      Checks to see if this has a repair penalty
      true if this has a repair penalty
    • getRepairCost

      int getRepairCost()
      Gets the repair penalty
      the repair penalty
    • setRepairCost

      void setRepairCost(int cost)
      Sets the repair penalty
      cost - repair penalty
    • clone

      @NotNull Repairable clone()
      Specified by:
      clone in interface ItemMeta