Class ExtendedNoiseChunkGenerator
java.lang.Object
net.minecraft.world.level.chunk.ChunkGenerator
net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator
org.moddingx.libx.sandbox.generator.ExtendedNoiseChunkGenerator
public class ExtendedNoiseChunkGenerator
extends net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator
A version of
NoiseBasedChunkGenerator
that allows overriding the surface rules, taking BiomeSurface
into account.-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ExtendedNoiseChunkGenerator>
Fields inherited from class net.minecraft.world.level.chunk.ChunkGenerator
biomeSource
-
Constructor Summary
ConstructorDescriptionExtendedNoiseChunkGenerator
(net.minecraft.world.level.biome.BiomeSource biomes, net.minecraft.core.Holder<net.minecraft.world.level.levelgen.NoiseGeneratorSettings> settings, Optional<net.minecraft.core.Holder<SurfaceRuleSet>> surfaceOverride) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.mojang.serialization.Codec<? extends net.minecraft.world.level.chunk.ChunkGenerator>
codec()
net.minecraft.core.Holder<net.minecraft.world.level.levelgen.NoiseGeneratorSettings>
void
init
(net.minecraft.core.RegistryAccess access) boolean
stable
(net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.NoiseGeneratorSettings> settings) Methods inherited from class net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator
addDebugScreenInfo, applyCarvers, buildSurface, buildSurface, createBiomes, fillFromNoise, getBaseColumn, getBaseHeight, getGenDepth, getMinY, getSeaLevel, iterateNoiseColumn, spawnOriginalMobs
Methods inherited from class net.minecraft.world.level.chunk.ChunkGenerator
applyBiomeDecoration, createReferences, createState, createStructures, findNearestMapStructure, getBiomeGenerationSettings, getBiomeSource, getFirstFreeHeight, getFirstOccupiedHeight, getMobsAt, getSpawnHeight, getTypeNameForDataFixer
-
Field Details
-
CODEC
-
-
Constructor Details
-
ExtendedNoiseChunkGenerator
public ExtendedNoiseChunkGenerator(net.minecraft.world.level.biome.BiomeSource biomes, net.minecraft.core.Holder<net.minecraft.world.level.levelgen.NoiseGeneratorSettings> settings, Optional<net.minecraft.core.Holder<SurfaceRuleSet>> surfaceOverride)
-
-
Method Details
-
init
public void init(net.minecraft.core.RegistryAccess access) -
codec
@Nonnull protected com.mojang.serialization.Codec<? extends net.minecraft.world.level.chunk.ChunkGenerator> codec()- Overrides:
codec
in classnet.minecraft.world.level.levelgen.NoiseBasedChunkGenerator
-
generatorSettings
@Nonnull public net.minecraft.core.Holder<net.minecraft.world.level.levelgen.NoiseGeneratorSettings> generatorSettings()- Overrides:
generatorSettings
in classnet.minecraft.world.level.levelgen.NoiseBasedChunkGenerator
-
stable
public boolean stable(@Nonnull net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.NoiseGeneratorSettings> settings) - Overrides:
stable
in classnet.minecraft.world.level.levelgen.NoiseBasedChunkGenerator
-