Skip to content

Commit

Permalink
Added isUnbreakable and setUnbreakable to ItemMeta
Browse files Browse the repository at this point in the history
  • Loading branch information
libraryaddict115 authored and SpigotMC committed Sep 4, 2014
1 parent 652a9ef commit d4c9346
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/main/java/org/bukkit/inventory/meta/ItemMeta.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,34 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable {
*/
boolean hasConflictingEnchant(Enchantment ench);

// Spigot start
public class Spigot
{

/**
* Sets the unbreakable tag
*
* @param unbreakable true if set unbreakable
*/
public void setUnbreakable(boolean unbreakable)
{
throw new UnsupportedOperationException( "Not supported yet." );
}

/**
* Return if the unbreakable tag is true
*
* @return true if the unbreakable tag is true
*/
public boolean isUnbreakable()
{
throw new UnsupportedOperationException( "Not supported yet." );
}
}

Spigot spigot();
// Spigot end

@SuppressWarnings("javadoc")
ItemMeta clone();
}

0 comments on commit d4c9346

Please sign in to comment.