2015-01-05 04:32:01 +01:00
|
|
|
From 2331761cccd87e36c9ca4d2de09ff3e465d8607b Mon Sep 17 00:00:00 2001
|
2014-08-25 23:30:52 +02:00
|
|
|
From: libraryaddict <redwarfare@live.com>
|
|
|
|
Date: Fri, 22 Aug 2014 05:31:04 -0400
|
|
|
|
Subject: [PATCH] Added isUnbreakable and setUnbreakable to ItemMeta
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/inventory/meta/ItemMeta.java b/src/main/java/org/bukkit/inventory/meta/ItemMeta.java
|
2014-11-30 23:16:48 +01:00
|
|
|
index 00f71ce..d560bb2 100644
|
2014-08-25 23:30:52 +02:00
|
|
|
--- a/src/main/java/org/bukkit/inventory/meta/ItemMeta.java
|
|
|
|
+++ b/src/main/java/org/bukkit/inventory/meta/ItemMeta.java
|
|
|
|
@@ -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();
|
|
|
|
}
|
|
|
|
--
|
2014-11-28 02:17:45 +01:00
|
|
|
2.1.0
|
2014-08-25 23:30:52 +02:00
|
|
|
|