2016-02-29 21:33:06 +00:00
|
|
|
From f36cbb4943bd6515cb4b1192c6243223a3d3290f Mon Sep 17 00:00:00 2001
|
2014-08-25 21:30:52 +00: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
|
2015-02-15 01:52:33 +00:00
|
|
|
index 459e09c..d8cc821 100644
|
2014-08-25 21:30:52 +00:00
|
|
|
--- a/src/main/java/org/bukkit/inventory/meta/ItemMeta.java
|
|
|
|
+++ b/src/main/java/org/bukkit/inventory/meta/ItemMeta.java
|
2015-02-15 01:52:33 +00:00
|
|
|
@@ -157,4 +157,32 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable {
|
2014-08-25 21:30:52 +00:00
|
|
|
|
2015-02-15 01:52:33 +00:00
|
|
|
@SuppressWarnings("javadoc")
|
|
|
|
ItemMeta clone();
|
|
|
|
+
|
2014-08-25 21:30:52 +00:00
|
|
|
+ // 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
|
|
|
|
}
|
|
|
|
--
|
2016-02-29 21:33:06 +00:00
|
|
|
2.5.0
|
2014-08-25 21:30:52 +00:00
|
|
|
|