geforkt von Mirrors/Paper
Add Unbreakable to ItemMeta
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
229ff86864
Commit
c3ecd0d680
@ -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();
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren