Search in sources :

Example 1 with SkyblockNoiseBasedChunkGenerator

use of de.melanx.skyblockbuilder.world.chunkgenerators.SkyblockNoiseBasedChunkGenerator in project SkyblockBuilder by MelanX.

the class VoidWorldType method netherChunkGenerator.

private static ChunkGenerator netherChunkGenerator(RegistryAccess dynamicRegistries, Registry<StructureSet> structureSets, Registry<NormalNoise.NoiseParameters> noises, Registry<Biome> biomeRegistry, Registry<NoiseGeneratorSettings> dimensionSettingsRegistry, long seed) {
    BiomeSource biomeSource = BiomeSourceConverter.customBiomeSource(Level.NETHER, dynamicRegistries, MultiNoiseBiomeSource.Preset.NETHER.biomeSource(biomeRegistry));
    Holder<NoiseGeneratorSettings> settings = dimensionSettingsRegistry.getOrCreateHolder(NoiseGeneratorSettings.NETHER);
    return new SkyblockNoiseBasedChunkGenerator(structureSets, noises, biomeSource, seed, settings, Level.NETHER);
}
Also used : BiomeSource(net.minecraft.world.level.biome.BiomeSource) TheEndBiomeSource(net.minecraft.world.level.biome.TheEndBiomeSource) MultiNoiseBiomeSource(net.minecraft.world.level.biome.MultiNoiseBiomeSource) SkyblockNoiseBasedChunkGenerator(de.melanx.skyblockbuilder.world.chunkgenerators.SkyblockNoiseBasedChunkGenerator) NoiseGeneratorSettings(net.minecraft.world.level.levelgen.NoiseGeneratorSettings)

Example 2 with SkyblockNoiseBasedChunkGenerator

use of de.melanx.skyblockbuilder.world.chunkgenerators.SkyblockNoiseBasedChunkGenerator 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 BiomeSource (net.minecraft.world.level.biome.BiomeSource)1 TheEndBiomeSource (net.minecraft.world.level.biome.TheEndBiomeSource)1