mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 05:47:45 +01:00
Add Material Tags for Coral, Coral Fangs and Coral Blocks
This commit is contained in:
parent
603d4bb5a6
commit
2220d44459
@ -718,6 +718,28 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ public static final MaterialSetTag COLORABLE = new MaterialSetTag(keyFor("colorable"))
|
||||
+ .add(Tag.WOOL, Tag.CARPETS).add(SHULKER_BOXES, STAINED_GLASS, STAINED_GLASS_PANES, CONCRETES, BEDS);
|
||||
+ //.ensureSize("COLORABLE", 81); unit test don't have the vanilla item tags, so counts don't line up for real
|
||||
+
|
||||
+ /**
|
||||
+ * Covers the variants of coral.
|
||||
+ */
|
||||
+ public static final MaterialSetTag CORAL = new MaterialSetTag(keyFor("coral"))
|
||||
+ .endsWith("_CORAL")
|
||||
+ .ensureSize("CORAL", 10);
|
||||
+
|
||||
+ /**
|
||||
+ * Covers the variants of coral fans.
|
||||
+ */
|
||||
+ public static final MaterialSetTag CORAL_FANS = new MaterialSetTag(keyFor("coral_fans"))
|
||||
+ .endsWith("_CORAL_FAN")
|
||||
+ .endsWith("_CORAL_WALL_FAN")
|
||||
+ .ensureSize("CORAL_FANS", 20);
|
||||
+
|
||||
+ /**
|
||||
+ * Covers the variants of coral blocks.
|
||||
+ */
|
||||
+ public static final MaterialSetTag CORAL_BLOCKS = new MaterialSetTag(keyFor("coral_blocks"))
|
||||
+ .endsWith("_CORAL_BLOCK")
|
||||
+ .ensureSize("CORAL_BLOCKS", 10);
|
||||
+}
|
||||
diff --git a/src/test/java/com/destroystokyo/paper/MaterialTagsTest.java b/src/test/java/com/destroystokyo/paper/MaterialTagsTest.java
|
||||
new file mode 100644
|
||||
|
Loading…
Reference in New Issue
Block a user