mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 03:35:51 -07:00
@@ -155,6 +155,21 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable {
|
|||||||
*/
|
*/
|
||||||
boolean hasItemFlag(ItemFlag flag);
|
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")
|
@SuppressWarnings("javadoc")
|
||||||
ItemMeta clone();
|
ItemMeta clone();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user