Expand MaterialTags v2 (#4009)

This commit is contained in:
Ineusia 2020-07-27 22:05:54 -05:00
parent 8970b17f6f
commit a5913be266

View file

@ -700,6 +700,21 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ .endsWith("_BOOTS")
+ .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")
+ public static final MaterialSetTag COLORABLE = new MaterialSetTag(keyFor("colorable"))
+ .add(Tag.WOOL, Tag.CARPETS).add(SHULKER_BOXES, STAINED_GLASS, STAINED_GLASS_PANES, CONCRETES, BEDS);