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
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<ExtendedNoiseChunkGenerator> Fields inherited from class net.minecraft.world.level.chunk.ChunkGenerator
biomeSource -
Constructor Summary
ConstructorsConstructorDescriptionExtendedNoiseChunkGenerator(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.MapCodec<? extends net.minecraft.world.level.chunk.ChunkGenerator> codec()net.minecraft.core.Holder<net.minecraft.world.level.levelgen.NoiseGeneratorSettings> voidinit(net.minecraft.core.RegistryAccess access) booleanstable(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, spawnOriginalMobsMethods inherited from class net.minecraft.world.level.chunk.ChunkGenerator
applyBiomeDecoration, createReferences, createState, createStructures, findNearestMapStructure, getBiomeGenerationSettings, getBiomeSource, getFirstFreeHeight, getFirstOccupiedHeight, getMobsAt, getSpawnHeight, getTypeNameForDataFixer, refreshFeaturesPerStep, validate
-
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.MapCodec<? extends net.minecraft.world.level.chunk.ChunkGenerator> codec()- Overrides:
codecin classnet.minecraft.world.level.levelgen.NoiseBasedChunkGenerator
-
generatorSettings
@Nonnull public net.minecraft.core.Holder<net.minecraft.world.level.levelgen.NoiseGeneratorSettings> generatorSettings()- Overrides:
generatorSettingsin classnet.minecraft.world.level.levelgen.NoiseBasedChunkGenerator
-
stable
public boolean stable(@Nonnull net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.NoiseGeneratorSettings> settings) - Overrides:
stablein classnet.minecraft.world.level.levelgen.NoiseBasedChunkGenerator
-