Search in sources :

Example 1 with MultiNoiseBiomeSource

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);
}
Also used : MultiNoiseBiomeSource(net.minecraft.world.level.biome.MultiNoiseBiomeSource) StructureSet(net.minecraft.world.level.levelgen.structure.StructureSet) SkyblockNoiseBasedChunkGenerator(de.melanx.skyblockbuilder.world.chunkgenerators.SkyblockNoiseBasedChunkGenerator) NoiseBasedChunkGenerator(net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator) NoiseGeneratorSettings(net.minecraft.world.level.levelgen.NoiseGeneratorSettings)

Example 2 with MultiNoiseBiomeSource

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);
}
Also used : MultiNoiseBiomeSource(net.minecraft.world.level.biome.MultiNoiseBiomeSource) SkyblockNoiseBasedChunkGenerator(de.melanx.skyblockbuilder.world.chunkgenerators.SkyblockNoiseBasedChunkGenerator) NoiseGeneratorSettings(net.minecraft.world.level.levelgen.NoiseGeneratorSettings)

Aggregations

SkyblockNoiseBasedChunkGenerator (de.melanx.skyblockbuilder.world.chunkgenerators.SkyblockNoiseBasedChunkGenerator)2 MultiNoiseBiomeSource (net.minecraft.world.level.biome.MultiNoiseBiomeSource)2 NoiseGeneratorSettings (net.minecraft.world.level.levelgen.NoiseGeneratorSettings)2 NoiseBasedChunkGenerator (net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator)1 StructureSet (net.minecraft.world.level.levelgen.structure.StructureSet)1