From 2220d444594e960b0ac113f32e463e3f3d72a270 Mon Sep 17 00:00:00 2001
From: HexedHero <6012891+HexedHero@users.noreply.github.com>
Date: Fri, 27 Nov 2020 15:26:52 +0000
Subject: [PATCH] Add Material Tags for Coral, Coral Fangs and Coral Blocks

---
 Spigot-API-Patches/Add-Material-Tags.patch | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/Spigot-API-Patches/Add-Material-Tags.patch b/Spigot-API-Patches/Add-Material-Tags.patch
index 82c406174a..2562158cb3 100644
--- a/Spigot-API-Patches/Add-Material-Tags.patch
+++ b/Spigot-API-Patches/Add-Material-Tags.patch
@@ -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