Skip to content

Commit 2be9beb

Browse files
Add material tags for deepslate ores (#7174)
1 parent a736c1a commit 2be9beb

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

patches/api/0156-Add-Material-Tags.patch

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ index 0000000000000000000000000000000000000000..a02a02aa0c87e0f0ed9e509e4dcab015
113113
+}
114114
diff --git a/src/main/java/com/destroystokyo/paper/MaterialTags.java b/src/main/java/com/destroystokyo/paper/MaterialTags.java
115115
new file mode 100644
116-
index 0000000000000000000000000000000000000000..a5fc48df2f1f04d836c5ae3dae7dce8acdb2de32
116+
index 0000000000000000000000000000000000000000..4606fcbb4a7e3857a5d74dac96aed4d29b5066a9
117117
--- /dev/null
118118
+++ b/src/main/java/com/destroystokyo/paper/MaterialTags.java
119-
@@ -0,0 +1,646 @@
119+
@@ -0,0 +1,652 @@
120120
+/*
121121
+ * Copyright (c) 2018 Daniel Ennis (Aikar) MIT License
122122
+ *
@@ -682,12 +682,18 @@ index 0000000000000000000000000000000000000000..a5fc48df2f1f04d836c5ae3dae7dce8a
682682
+ .add(Material.RAW_COPPER, Material.RAW_GOLD, Material.RAW_IRON);
683683
+
684684
+ /**
685+
+ * Covers the variants of deepslate ores.
686+
+ */
687+
+ public static final MaterialSetTag DEEPSLATE_ORES = new MaterialSetTag(keyFor("deepslate_ores"))
688+
+ .add(material -> material.name().startsWith("DEEPSLATE_") && material.name().endsWith("_ORE"))
689+
+ .ensureSize("DEEPSLATE_ORES", 8);
690+
+
691+
+ /**
685692
+ * Covers the variants of raw ore blocks.
686693
+ */
687694
+ public static final MaterialSetTag RAW_ORE_BLOCKS = new MaterialSetTag(keyFor("raw_ore_blocks"))
688695
+ .add(Material.RAW_COPPER_BLOCK, Material.RAW_GOLD_BLOCK, Material.RAW_IRON_BLOCK);
689696
+
690-
+
691697
+ /**
692698
+ * Covers all oxidized copper blocks.
693699
+ */

0 commit comments

Comments
 (0)