package net.minecraft.world.level.biome; import net.minecraft.core.HolderGetter; import net.minecraft.core.registries.Registries; import net.minecraft.data.worldgen.BootstrapContext; import net.minecraft.resources.ResourceKey; import net.minecraft.resources.ResourceLocation; public class MultiNoiseBiomeSourceParameterLists { public static final ResourceKey NETHER = register("nether"); public static final ResourceKey OVERWORLD = register("overworld"); public static void bootstrap(BootstrapContext context) { HolderGetter holderGetter = context.lookup(Registries.BIOME); context.register(NETHER, new MultiNoiseBiomeSourceParameterList(MultiNoiseBiomeSourceParameterList.Preset.NETHER, holderGetter)); context.register(OVERWORLD, new MultiNoiseBiomeSourceParameterList(MultiNoiseBiomeSourceParameterList.Preset.OVERWORLD, holderGetter)); } private static ResourceKey register(String name) { return ResourceKey.create(Registries.MULTI_NOISE_BIOME_SOURCE_PARAMETER_LIST, ResourceLocation.withDefaultNamespace(name)); } }