PotionTags .java

net.minecraft.tags.PotionTags (class): members: HURTS_WATER_SENSITIVE_ENTITIES, EXTINGUISHES_ENTITIES, REHYDRATES_AXOLOTLS, DOUSES_FIRE, TRADEABLE.

net.minecraft.tagsclass21 linescommon806 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Fields & Constants (5)

TRADEABLE
DOUSES_FIRE
HURTS_WATER_SENSITIVE_ENTITIES
EXTINGUISHES_ENTITIES
REHYDRATES_AXOLOTLS

String literals (5)

"tradeable"
"douses_fire"
"hurts_water_sensitive_entities"
"extinguishes_entities"
"rehydrates_axolotls"

Code Graph: Dependencies (4)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

PotionTags.java21 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.tags;
2
3
import net.minecraft.core.registries.Registries;
4
import net.minecraft.resources.Identifier;
5
import net.minecraft.world.item.alchemy.Potion;
6
7
public class PotionTags {
8
	public static final TagKey<Potion> TRADEABLE = create("tradeable");
9
	public static final TagKey<Potion> DOUSES_FIRE = create("douses_fire");
10
	public static final TagKey<Potion> HURTS_WATER_SENSITIVE_ENTITIES = create("hurts_water_sensitive_entities");
11
	public static final TagKey<Potion> EXTINGUISHES_ENTITIES = create("extinguishes_entities");
12
	public static final TagKey<Potion> REHYDRATES_AXOLOTLS = create("rehydrates_axolotls");
13
14
	private PotionTags() {
15
	}
16
17
	private static TagKey<Potion> create(final String name) {
18
		return TagKey.create(Registries.POTION, Identifier.withDefaultNamespace(name));
19
	}
20
}
21

Decompiled Minecraft 26.3 source of PotionTags (net/minecraft/tags/PotionTags.java) with Mojang official mappings, stored verbatim on the site.