Search in sources :

Example 1 with SkyblockEndChunkGenerator

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

the class VoidWorldType method endChunkGenerator.

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

Aggregations

SkyblockEndChunkGenerator (de.melanx.skyblockbuilder.world.chunkgenerators.SkyblockEndChunkGenerator)1 TheEndBiomeSource (net.minecraft.world.level.biome.TheEndBiomeSource)1 NoiseGeneratorSettings (net.minecraft.world.level.levelgen.NoiseGeneratorSettings)1