mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 07:48:53 +01:00
Expand MaterialTags v2 (#4009)
This commit is contained in:
parent
5aaf1c514a
commit
115972651a
1 changed files with 17 additions and 2 deletions
|
@ -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
|
diff --git a/src/main/java/com/destroystokyo/paper/MaterialTags.java b/src/main/java/com/destroystokyo/paper/MaterialTags.java
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000000000000000000000000000000000000..4932bd60d30b73e03fecc75f57212f46881d2843
|
index 0000000000000000000000000000000000000000..62313883aa183003726f268c8d9f210d83428f59
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/src/main/java/com/destroystokyo/paper/MaterialTags.java
|
+++ b/src/main/java/com/destroystokyo/paper/MaterialTags.java
|
||||||
@@ -0,0 +1,497 @@
|
@@ -0,0 +1,512 @@
|
||||||
+/*
|
+/*
|
||||||
+ * Copyright (c) 2018 Daniel Ennis (Aikar) MIT License
|
+ * Copyright (c) 2018 Daniel Ennis (Aikar) MIT License
|
||||||
+ *
|
+ *
|
||||||
|
@ -700,6 +700,21 @@ index 0000000000000000000000000000000000000000..4932bd60d30b73e03fecc75f57212f46
|
||||||
+ .endsWith("_BOOTS")
|
+ .endsWith("_BOOTS")
|
||||||
+ .ensureSize("BOOTS", 6);
|
+ .ensureSize("BOOTS", 6);
|
||||||
+
|
+
|
||||||
|
+ /**
|
||||||
|
+ * Covers the variants of bows.
|
||||||
|
+ */
|
||||||
|
+ public static final MaterialSetTag BOWS = new MaterialSetTag(keyFor("bows"))
|
||||||
|
+ .add(Material.BOW)
|
||||||
|
+ .add(Material.CROSSBOW)
|
||||||
|
+ .ensureSize("BOWS", 2);
|
||||||
|
+
|
||||||
|
+ /**
|
||||||
|
+ * Covers the variants of player-throwable projectiles (not requiring a bow or any other "assistance").
|
||||||
|
+ */
|
||||||
|
+ public static final MaterialSetTag THROWABLE_PROJECTILES = new MaterialSetTag(keyFor("throwable_projectiles"))
|
||||||
|
+ .add(Material.EGG, Material.SNOWBALL, Material.SPLASH_POTION, Material.TRIDENT, Material.ENDER_PEARL, Material.EXPERIENCE_BOTTLE, Material.FIREWORK_ROCKET)
|
||||||
|
+ .ensureSize("THROWABLE_PROJECTILES", 2);
|
||||||
|
+
|
||||||
+ @SuppressWarnings("unchecked")
|
+ @SuppressWarnings("unchecked")
|
||||||
+ public static final MaterialSetTag COLORABLE = new MaterialSetTag(keyFor("colorable"))
|
+ public static final MaterialSetTag COLORABLE = new MaterialSetTag(keyFor("colorable"))
|
||||||
+ .add(Tag.WOOL, Tag.CARPETS).add(SHULKER_BOXES, STAINED_GLASS, STAINED_GLASS_PANES, CONCRETES, BEDS);
|
+ .add(Tag.WOOL, Tag.CARPETS).add(SHULKER_BOXES, STAINED_GLASS, STAINED_GLASS_PANES, CONCRETES, BEDS);
|
||||||
|
|
Loading…
Reference in a new issue