Package org.bukkit.inventory.meta
Interface Damageable
-
public interface Damageable
Represents an item that has durability and can take damage.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull Damageable
clone()
int
getDamage()
Gets the damageboolean
hasDamage()
Checks to see if this item has damagevoid
setDamage(int damage)
Sets the damage
-
-
-
Method Detail
-
hasDamage
boolean hasDamage()
Checks to see if this item has damage- Returns:
- true if this has damage
-
getDamage
int getDamage()
Gets the damage- Returns:
- the damage
-
setDamage
void setDamage(int damage)
Sets the damage- Parameters:
damage
- item damage
-
clone
@NotNull @NotNull Damageable clone()
-
-