SpawnConditions .java

net.minecraft.world.entity.variant.SpawnConditions (class): members: bootstrap. strings: "moon_brightness", "structure", "biome". imports: Registry.

net.minecraft.world.entity.variantclass13 linescommon503 B

API Surface (1)

MapCodec<? extends SpawnCondition> bootstrap(final Registry<MapCodec<? extends SpawnCondition>> registry)

String literals (3)

"structure"
"moon_brightness"
"biome"

Code Graph: Dependencies (2)

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

Full Source

SpawnConditions.java13 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.entity.variant;
2
3
import com.mojang.serialization.MapCodec;
4
import net.minecraft.core.Registry;
5
6
public class SpawnConditions {
7
	public static MapCodec<? extends SpawnCondition> bootstrap(final Registry<MapCodec<? extends SpawnCondition>> registry) {
8
		Registry.register(registry, "structure", StructureCheck.MAP_CODEC);
9
		Registry.register(registry, "moon_brightness", MoonBrightnessCheck.MAP_CODEC);
10
		return Registry.register(registry, "biome", BiomeCheck.MAP_CODEC);
11
	}
12
}
13

Decompiled Minecraft 26.3 source of SpawnConditions (net/minecraft/world/entity/variant/SpawnConditions.java) with Mojang official mappings, stored verbatim on the site.