mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
Add Unbreakable to ItemMeta
This commit is contained in:
parent
5037da9d4c
commit
d986a3f774
1 changed files with 15 additions and 0 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue