Interface Damageable

All Superinterfaces:
Cloneable, ConfigurationSerializable, ItemMeta, PersistentDataHolder

public interface Damageable extends ItemMeta
Represents an item that has durability and can take damage.
  • Method Details

    • hasDamage

      boolean hasDamage()
      Checks to see if this item has damage
      true if this has damage
    • getDamage

      int getDamage()
      Gets the damage
      the damage
    • setDamage

      void setDamage(int damage)
      Sets the damage
      damage - item damage
    • clone

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