use of net.minecraft.world.level.biome.TheEndBiomeSource in project SkyblockBuilder by MelanX.
the class VoidWorldType method defaultEndGenerator.
private static ChunkGenerator defaultEndGenerator(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);
TheEndBiomeSource biomeSource = new TheEndBiomeSource(dynamicRegistries.registryOrThrow(Registry.BIOME_REGISTRY), seed);
Holder<NoiseGeneratorSettings> settings = noiseGeneratorSettings.getOrCreateHolder(NoiseGeneratorSettings.END);
return new NoiseBasedChunkGenerator(structureSets, noises, biomeSource, seed, settings);
}
use of net.minecraft.world.level.biome.TheEndBiomeSource 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);
}
Aggregations