Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,10 @@ index c65f0d6569c130b4920a9e71ad24af6427f1f030..01bcb3a1bdb5accdf844d0178cec3d25
return key;
}
diff --git a/src/main/java/org/bukkit/inventory/meta/ItemMeta.java b/src/main/java/org/bukkit/inventory/meta/ItemMeta.java
index a19635c38705e6221ae25d58e976e483e7ed17e4..71c7780424a986a95852b1ca15116096896500df 100644
index 64114b1a9e201df369fc794fbee984d496385420..25f6c5e5590363bc3e6e535faf93fdddb685e030 100644
--- a/src/main/java/org/bukkit/inventory/meta/ItemMeta.java
+++ b/src/main/java/org/bukkit/inventory/meta/ItemMeta.java
@@ -444,4 +444,87 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable, Persiste
@@ -444,4 +444,117 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable, Persiste
@SuppressWarnings("javadoc")
@NotNull
ItemMeta clone();
Expand Down Expand Up @@ -287,6 +287,21 @@ index a19635c38705e6221ae25d58e976e483e7ed17e4..71c7780424a986a95852b1ca15116096
+ void setDestroyableKeys(@NotNull Collection<com.destroystokyo.paper.Namespaced> canDestroy);
+
+ /**
+ * Gets the collection of block datas that the item can destroy in {@link org.bukkit.GameMode#ADVENTURE}
+ *
+ * @return Set of {@link org.bukkit.block.data.BlockData}
+ */
+ @NotNull
+ Set<org.bukkit.block.data.BlockData> getDestroyableDatas();
+
+ /**
+ * Sets the collection of block datas that the item can destroy in {@link org.bukkit.GameMode#ADVENTURE}
+ *
+ * @param canDestroy Collection of {@link org.bukkit.block.data.BlockData}
+ */
+ void setDestroyableDatas(@NotNull Collection<org.bukkit.block.data.BlockData> canDestroy);
+
+ /**
+ * Gets the collection of namespaced keys that the item can be placed on in {@link org.bukkit.GameMode#ADVENTURE}
+ *
+ * @return Set of {@link com.destroystokyo.paper.Namespaced}
Expand All @@ -295,24 +310,39 @@ index a19635c38705e6221ae25d58e976e483e7ed17e4..71c7780424a986a95852b1ca15116096
+ Set<com.destroystokyo.paper.Namespaced> getPlaceableKeys();
+
+ /**
+ * Sets the set of namespaced keys that the item can be placed on in {@link org.bukkit.GameMode#ADVENTURE}
+ * Sets the collection of namespaced keys that the item can be placed on in {@link org.bukkit.GameMode#ADVENTURE}
+ *
+ * @param canPlaceOn Collection of {@link com.destroystokyo.paper.Namespaced}
+ */
+ @NotNull
+ void setPlaceableKeys(@NotNull Collection<com.destroystokyo.paper.Namespaced> canPlaceOn);
+
+ /**
+ * Checks for the existence of any keys that the item can be placed on
+ * Gets the collection of block datas that the item can be placed on in {@link org.bukkit.GameMode#ADVENTURE}
+ *
+ * @return Set of {@link org.bukkit.block.data.BlockData}
+ */
+ @NotNull
+ Set<org.bukkit.block.data.BlockData> getPlaceableDatas();
+
+ /**
+ * Sets the collection of block datas that the item can be placed on in {@link org.bukkit.GameMode#ADVENTURE}
+ *
+ * @param canPlaceOn Collection of {@link org.bukkit.block.data.BlockData}
+ */
+ void setPlaceableDatas(@NotNull Collection<org.bukkit.block.data.BlockData> canPlaceOn);
+
+ /**
+ * Checks for the existence of any keys or block datas that the item can be placed on
+ *
+ * @return true if this item has placeable keys
+ * @return true if this item has placeable keys and block datas
+ */
+ boolean hasPlaceableKeys();
+
+ /**
+ * Checks for the existence of any keys that the item can destroy
+ * Checks for the existence of any keys or block datas that the item can destroy
+ *
+ * @return true if this item has destroyable keys
+ * @return true if this item has destroyable keys and block datas
+ */
+ boolean hasDestroyableKeys();
+ // Paper end
Expand Down
Loading