Interface Repairable

All Superinterfaces:
Cloneable, ConfigurationSerializable, ItemMeta, PersistentDataHolder, PersistentDataViewHolder

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

    • hasRepairCost

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

      int getRepairCost()
      Gets the repair penalty
      Returns:
      the repair penalty
      Since:
      1.4.5
    • setRepairCost

      void setRepairCost(int cost)
      Sets the repair penalty
      Parameters:
      cost - repair penalty
      Since:
      1.4.5
    • clone

      Specified by:
      clone in interface ItemMeta