From 652539603bd60f299ddbea6cae8ed6627b4a062a Mon Sep 17 00:00:00 2001 From: TelepathicGrunt <40846040+TelepathicGrunt@users.noreply.github.com> Date: Mon, 14 Oct 2024 14:09:26 -0400 Subject: [PATCH] Improve potion javadoc to mention data component --- src/main/java/net/neoforged/neoforge/common/Tags.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/neoforged/neoforge/common/Tags.java b/src/main/java/net/neoforged/neoforge/common/Tags.java index f19f41486f..effd3c89a8 100644 --- a/src/main/java/net/neoforged/neoforge/common/Tags.java +++ b/src/main/java/net/neoforged/neoforge/common/Tags.java @@ -560,13 +560,14 @@ public static class Items { public static final TagKey PLAYER_WORKSTATIONS_CRAFTING_TABLES = tag("player_workstations/crafting_tables"); public static final TagKey PLAYER_WORKSTATIONS_FURNACES = tag("player_workstations/furnaces"); /** - * Items that can hold various potion effects similar to how potion bottles do. + * Items that can hold various potion effects by making use of {@link net.minecraft.core.component.DataComponents#POTION_CONTENTS}. * Contents of this tag may not always be a kind of bottle. Buckets of potions could go here. * The subtags would be the name of the container that is holding the potion effects such as `c:potions/bucket` or `c:potions/vial` as examples. */ public static final TagKey POTIONS = tag("potions"); /** - * Variations of the potion bottle that can hold various effects. Examples are splash and lingering potions from vanilla. + * Variations of the potion bottle that can hold various effects by using {@link net.minecraft.core.component.DataComponents#POTION_CONTENTS}. + * Examples are splash and lingering potions from vanilla. * If a mod adds a new variant like a seeking potion that applies effect to the closest entity at impact, that would in this tag. */ public static final TagKey POTION_BOTTLE = tag("potions/bottle");