From b40aeccfc201677ea42da549acafbd31e34def01 Mon Sep 17 00:00:00 2001 From: Gergely Sarkozi Date: Sun, 7 Mar 2021 11:31:20 +0100 Subject: [PATCH] [CI-SKIP] Add JavaDoc links to Tag class pointing to custom Paper tags (#5285) --- Spigot-API-Patches/Add-Material-Tags.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Spigot-API-Patches/Add-Material-Tags.patch b/Spigot-API-Patches/Add-Material-Tags.patch index f4c51115a..ef43bd613 100644 --- a/Spigot-API-Patches/Add-Material-Tags.patch +++ b/Spigot-API-Patches/Add-Material-Tags.patch @@ -943,6 +943,21 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + .add(DOLPHIN, SQUID, GUARDIAN, ELDER_GUARDIAN, TURTLE, COD, SALMON, PUFFERFISH, TROPICAL_FISH) + .ensureSize("WATER_BASED", 9); +} +diff --git a/src/main/java/org/bukkit/Tag.java b/src/main/java/org/bukkit/Tag.java +index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/org/bukkit/Tag.java ++++ b/src/main/java/org/bukkit/Tag.java +@@ -0,0 +0,0 @@ import org.jetbrains.annotations.NotNull; + * Note that whilst all tags defined within this interface must be present in + * implementations, their existence is not guaranteed across future versions. + * ++ *

Custom tags defined by Paper are not present (as constants) in this class. ++ * To access them please refer to {@link com.destroystokyo.paper.MaterialTags} ++ * and {@link io.papermc.paper.tag.EntityTags}.

++ * + * @param the type of things grouped by this tag + */ + public interface Tag extends Keyed { diff --git a/src/test/java/com/destroystokyo/paper/MaterialTagsTest.java b/src/test/java/com/destroystokyo/paper/MaterialTagsTest.java new file mode 100644 index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000