use of net.minecraft.world.level.biome.MultiNoiseBiomeSource in project SkyblockBuilder by MelanX.
the class VoidWorldType method defaultNetherGenerator.
private static ChunkGenerator defaultNetherGenerator(RegistryAccess dynamicRegistries, long seed) {
Registry<NoiseGeneratorSettings> noiseGeneratorSettings = dynamicRegistries.registryOrThrow(Registry.NOISE_GENERATOR_SETTINGS_REGISTRY);
Registry<StructureSet> structureSets = dynamicRegistries.registryOrThrow(Registry.STRUCTURE_SET_REGISTRY);
Registry<NormalNoise.NoiseParameters> noises = dynamicRegistries.registryOrThrow(Registry.NOISE_REGISTRY);
MultiNoiseBiomeSource biomeSource = MultiNoiseBiomeSource.Preset.NETHER.biomeSource(dynamicRegistries.registryOrThrow(Registry.BIOME_REGISTRY));
Holder<NoiseGeneratorSettings> settings = noiseGeneratorSettings.getOrCreateHolder(NoiseGeneratorSettings.NETHER);
return new NoiseBasedChunkGenerator(structureSets, noises, biomeSource, seed, settings);
}
use of net.minecraft.world.level.biome.MultiNoiseBiomeSource in project SkyblockBuilder by MelanX.
the class VoidWorldType method overworldChunkGenerator.
public static ChunkGenerator overworldChunkGenerator(RegistryAccess dynamicRegistries, Registry<StructureSet> structureSets, Registry<NormalNoise.NoiseParameters> noises, @Nonnull Registry<Biome> biomeRegistry, @Nonnull Registry<NoiseGeneratorSettings> dimensionSettingsRegistry, long seed) {
MultiNoiseBiomeSource biomeSource = (MultiNoiseBiomeSource) BiomeSourceConverter.customBiomeSource(Level.OVERWORLD, dynamicRegistries, MultiNoiseBiomeSource.Preset.OVERWORLD.biomeSource(biomeRegistry, false));
Holder<NoiseGeneratorSettings> settings = dimensionSettingsRegistry.getOrCreateHolder(NoiseGeneratorSettings.OVERWORLD);
return new SkyblockNoiseBasedChunkGenerator(structureSets, noises, biomeSource, seed, settings, Level.OVERWORLD);
}
Aggregations