Add doors to material tags

This commit is contained in:
Malfrador 2020-12-31 19:31:35 +01:00 committed by Mariell
parent d075e748ed
commit 975d187034

View File

@ -204,10 +204,10 @@ index 0000000000000000000000000000000000000000..c91ea2a0679a7f3a5627b5a008e0b39d
+}
diff --git a/src/main/java/com/destroystokyo/paper/MaterialTags.java b/src/main/java/com/destroystokyo/paper/MaterialTags.java
new file mode 100644
index 0000000000000000000000000000000000000000..0328532bb4848d55a719c96ea3df4ac545b5b05a
index 0000000000000000000000000000000000000000..ce19324d4667e8632615b16402743a9c00694d31
--- /dev/null
+++ b/src/main/java/com/destroystokyo/paper/MaterialTags.java
@@ -0,0 +1,533 @@
@@ -0,0 +1,548 @@
+/*
+ * Copyright (c) 2018 Daniel Ennis (Aikar) MIT License
+ *
@ -306,6 +306,13 @@ index 0000000000000000000000000000000000000000..0328532bb4848d55a719c96ea3df4ac5
+ .add(Material.COOKED_COD, Material.COOKED_SALMON);
+
+ /**
+ * Covers all variants of doors.
+ */
+ public static final MaterialSetTag DOORS = new MaterialSetTag(keyFor("doors"))
+ .endsWith("_DOOR")
+ .ensureSize("DOORS", 9);
+
+ /**
+ * Covers all dyes.
+ */
+ public static final MaterialSetTag DYES = new MaterialSetTag(keyFor("dyes"))
@ -542,6 +549,14 @@ index 0000000000000000000000000000000000000000..0328532bb4848d55a719c96ea3df4ac5
+ .ensureSize("TRAPDOORS", 9);
+
+ /**
+ * Covers all wood variants of doors.
+ */
+ public static final MaterialSetTag WOODEN_DOORS = new MaterialSetTag(keyFor("wooden_doors"))
+ .endsWith("_DOOR")
+ .not(Material.IRON_DOOR)
+ .ensureSize("WOODEN_DOORS", 8);
+
+ /**
+ * Covers all wood variants of fences.
+ */
+ public static final MaterialSetTag WOODEN_FENCES = new MaterialSetTag(keyFor("wooden_fences"))