FluidIds .java

net.minecraft.world.level.material.FluidIds (class, 18 lines): members: FLOWING_WATER, FLOWING_LAVA, LAVA, WATER, EMPTY. strings: "flowing_water", "lava".

net.minecraft.world.level.materialclass18 linescommon714 B

API Surface (0)

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

Fields & Constants (5)

EMPTY
FLOWING_WATER
WATER
FLOWING_LAVA
LAVA

String literals (5)

"empty"
"flowing_water"
"water"
"flowing_lava"
"lava"

Code Graph: Dependencies (4)

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

Full Source

FluidIds.java18 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level.material;
2
3
import net.minecraft.core.registries.Registries;
4
import net.minecraft.resources.Identifier;
5
import net.minecraft.resources.ResourceKey;
6
7
public class FluidIds {
8
	public static final ResourceKey<Fluid> EMPTY = create("empty");
9
	public static final ResourceKey<Fluid> FLOWING_WATER = create("flowing_water");
10
	public static final ResourceKey<Fluid> WATER = create("water");
11
	public static final ResourceKey<Fluid> FLOWING_LAVA = create("flowing_lava");
12
	public static final ResourceKey<Fluid> LAVA = create("lava");
13
14
	private static ResourceKey<Fluid> create(final String name) {
15
		return ResourceKey.create(Registries.FLUID, Identifier.withDefaultNamespace(name));
16
	}
17
}
18

Decompiled Minecraft 26.3 source of FluidIds (net/minecraft/world/level/material/FluidIds.java) with Mojang official mappings, stored verbatim on the site.