mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
Expand MaterialTags v2 (#4009)
This commit is contained in:
parent
8970b17f6f
commit
a5913be266
1 changed files with 15 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue