mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 12:42:05 -07:00
Add command block material tags (#11720)
This commit is contained in:
@@ -9,6 +9,7 @@ are related to each other by a trait.
|
|||||||
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
|
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
|
||||||
Co-authored-by: Lena Kolb <lenakolb2204@gmail.com>
|
Co-authored-by: Lena Kolb <lenakolb2204@gmail.com>
|
||||||
Co-authored-by: Layla Silbernberg <livsilbernberg@gmail.com>
|
Co-authored-by: Layla Silbernberg <livsilbernberg@gmail.com>
|
||||||
|
Co-authored-by: Newwind <newwindserver@gmail.com>
|
||||||
|
|
||||||
diff --git a/src/main/java/com/destroystokyo/paper/MaterialSetTag.java b/src/main/java/com/destroystokyo/paper/MaterialSetTag.java
|
diff --git a/src/main/java/com/destroystokyo/paper/MaterialSetTag.java b/src/main/java/com/destroystokyo/paper/MaterialSetTag.java
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
@@ -702,6 +703,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ .add(Material.RAW_COPPER, Material.RAW_GOLD, Material.RAW_IRON).lock();
|
+ .add(Material.RAW_COPPER, Material.RAW_GOLD, Material.RAW_IRON).lock();
|
||||||
+
|
+
|
||||||
+ /**
|
+ /**
|
||||||
|
+ * Covers all command block types.
|
||||||
|
+ */
|
||||||
|
+ public static final MaterialSetTag COMMAND_BLOCKS = new MaterialSetTag(keyFor("command_blocks"))
|
||||||
|
+ .endsWith("COMMAND_BLOCK")
|
||||||
|
+ .ensureSize("COMMAND_BLOCKS", 3).lock();
|
||||||
|
+
|
||||||
|
+ /**
|
||||||
+ * Covers the variants of deepslate ores.
|
+ * Covers the variants of deepslate ores.
|
||||||
+ */
|
+ */
|
||||||
+ public static final MaterialSetTag DEEPSLATE_ORES = new MaterialSetTag(keyFor("deepslate_ores"))
|
+ public static final MaterialSetTag DEEPSLATE_ORES = new MaterialSetTag(keyFor("deepslate_ores"))
|
||||||
|
Reference in New Issue
Block a user