2025-11-24 22:52:51 +03:00

24 lines
875 B
Java

/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* com.mojang.serialization.MapCodec
*/
package net.minecraft.world.entity.variant;
import com.mojang.serialization.MapCodec;
import net.minecraft.core.Registry;
import net.minecraft.world.entity.variant.BiomeCheck;
import net.minecraft.world.entity.variant.MoonBrightnessCheck;
import net.minecraft.world.entity.variant.SpawnCondition;
import net.minecraft.world.entity.variant.StructureCheck;
public class SpawnConditions {
public static MapCodec<? extends SpawnCondition> bootstrap(Registry<MapCodec<? extends SpawnCondition>> registry) {
Registry.register(registry, "structure", StructureCheck.MAP_CODEC);
Registry.register(registry, "moon_brightness", MoonBrightnessCheck.MAP_CODEC);
return Registry.register(registry, "biome", BiomeCheck.MAP_CODEC);
}
}