Skip to content
This repository was archived by the owner on Dec 28, 2021. It is now read-only.

Commit d4c9346

Browse files
libraryaddict115SpigotMC
authored andcommitted
Added isUnbreakable and setUnbreakable to ItemMeta
1 parent 652a9ef commit d4c9346

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/main/java/org/bukkit/inventory/meta/ItemMeta.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,34 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable {
124124
*/
125125
boolean hasConflictingEnchant(Enchantment ench);
126126

127+
// Spigot start
128+
public class Spigot
129+
{
130+
131+
/**
132+
* Sets the unbreakable tag
133+
*
134+
* @param unbreakable true if set unbreakable
135+
*/
136+
public void setUnbreakable(boolean unbreakable)
137+
{
138+
throw new UnsupportedOperationException( "Not supported yet." );
139+
}
140+
141+
/**
142+
* Return if the unbreakable tag is true
143+
*
144+
* @return true if the unbreakable tag is true
145+
*/
146+
public boolean isUnbreakable()
147+
{
148+
throw new UnsupportedOperationException( "Not supported yet." );
149+
}
150+
}
151+
152+
Spigot spigot();
153+
// Spigot end
154+
127155
@SuppressWarnings("javadoc")
128156
ItemMeta clone();
129157
}

0 commit comments

Comments
 (0)