mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-09 04:09:54 +01:00
49 lines
1.4 KiB
Diff
49 lines
1.4 KiB
Diff
|
From f5d98cb5c1e4609b3ff4f3eae09e1cf97792d6fa Mon Sep 17 00:00:00 2001
|
||
|
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
|
||
|
index 397ba11..9ae3e4c 100644
|
||
|
--- 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();
|
||
|
}
|
||
|
--
|
||
|
1.9.1
|
||
|
|