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.Identifier;
import net.minecraft.resources.ResourceKey;

public class MultiNoiseBiomeSourceParameterLists {
	public static final ResourceKey<MultiNoiseBiomeSourceParameterList> NETHER = register("nether");
	public static final ResourceKey<MultiNoiseBiomeSourceParameterList> OVERWORLD = register("overworld");

	public static void bootstrap(final BootstrapContext<MultiNoiseBiomeSourceParameterList> context) {
		HolderGetter<Biome> biomes = context.lookup(Registries.BIOME);
		context.register(NETHER, new MultiNoiseBiomeSourceParameterList(MultiNoiseBiomeSourceParameterList.Preset.NETHER, biomes));
		context.register(OVERWORLD, new MultiNoiseBiomeSourceParameterList(MultiNoiseBiomeSourceParameterList.Preset.OVERWORLD, biomes));
	}

	private static ResourceKey<MultiNoiseBiomeSourceParameterList> register(final String name) {
		return ResourceKey.create(Registries.MULTI_NOISE_BIOME_SOURCE_PARAMETER_LIST, Identifier.withDefaultNamespace(name));
	}
}
