Add Unbreakable to ItemMeta

This commit is contained in:
md_5 2016-11-22 14:35:51 +11:00
parent 5037da9d4c
commit d986a3f774

View file

@ -155,6 +155,21 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable {
*/
boolean hasItemFlag(ItemFlag flag);
/**
* Return if the unbreakable tag is true. An unbreakable item will not lose
* durability.
*
* @return true if the unbreakable tag is true
*/
boolean isUnbreakable();
/**
* Sets the unbreakable tag. An unbreakable item will not lose durability.
*
* @param unbreakable true if set unbreakable
*/
void setUnbreakable(boolean unbreakable);
@SuppressWarnings("javadoc")
ItemMeta clone();
}