Class SurfaceSystem
java.lang.Object
net.minecraft.world.level.levelgen.SurfaceSystem
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NormalNoiseprivate final NormalNoiseprivate final NormalNoiseprivate static final BlockStateprivate final BlockState[]private final NormalNoiseprivate final BlockStateprivate final NormalNoiseprivate final NormalNoiseprivate final NormalNoiseprivate static final BlockStateprivate final PositionalRandomFactoryprivate static final BlockStateprivate static final BlockStateprivate static final BlockStateprivate final intprivate static final BlockStateprivate final NormalNoiseprivate final NormalNoiseprivate static final BlockStateprivate static final BlockStateprivate static final BlockState -
Constructor Summary
ConstructorsConstructorDescriptionSurfaceSystem(RandomState randomState, BlockState defaultBlock, int seaLevel, PositionalRandomFactory noiseRandom) -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildSurface(RandomState randomState, BiomeManager biomeManager, Registry<Biome> biomes, boolean useLegacyRandom, WorldGenerationContext generationContext, ChunkAccess protoChunk, NoiseChunk noiseChunk, SurfaceRules.RuleSource ruleSource) private voiderodedBadlandsExtension(BlockColumn column, int blockX, int blockZ, int height, LevelHeightAccessor protoChunk) private voidfrozenOceanExtension(int minSurfaceLevel, Biome surfaceBiome, BlockColumn column, BlockPos.MutableBlockPos blockPos, int blockX, int blockZ, int height) private static BlockState[]generateBands(RandomSource random) protected BlockStategetBand(int worldX, int y, int worldZ) intprotected intgetSurfaceDepth(int blockX, int blockZ) protected doublegetSurfaceSecondary(int blockX, int blockZ) private booleanisStone(BlockState state) private static voidmakeBands(RandomSource random, BlockState[] clayBands, int baseWidth, BlockState state) topMaterial(SurfaceRules.RuleSource ruleSource, CarvingContext carvingContext, Function<BlockPos, Holder<Biome>> biomeGetter, ChunkAccess chunk, NoiseChunk noiseChunk, BlockPos pos, boolean underFluid) Deprecated.
-
Field Details
-
WHITE_TERRACOTTA
-
ORANGE_TERRACOTTA
-
TERRACOTTA
-
YELLOW_TERRACOTTA
-
BROWN_TERRACOTTA
-
RED_TERRACOTTA
-
LIGHT_GRAY_TERRACOTTA
-
PACKED_ICE
-
SNOW_BLOCK
-
defaultBlock
-
seaLevel
private final int seaLevel -
clayBands
-
clayBandsOffsetNoise
-
badlandsPillarNoise
-
badlandsPillarRoofNoise
-
badlandsSurfaceNoise
-
icebergPillarNoise
-
icebergPillarRoofNoise
-
icebergSurfaceNoise
-
noiseRandom
-
surfaceNoise
-
surfaceSecondaryNoise
-
-
Constructor Details
-
SurfaceSystem
public SurfaceSystem(RandomState randomState, BlockState defaultBlock, int seaLevel, PositionalRandomFactory noiseRandom)
-
-
Method Details
-
buildSurface
public void buildSurface(RandomState randomState, BiomeManager biomeManager, Registry<Biome> biomes, boolean useLegacyRandom, WorldGenerationContext generationContext, ChunkAccess protoChunk, NoiseChunk noiseChunk, SurfaceRules.RuleSource ruleSource) -
getSurfaceDepth
protected int getSurfaceDepth(int blockX, int blockZ) -
getSurfaceSecondary
protected double getSurfaceSecondary(int blockX, int blockZ) -
isStone
-
getSeaLevel
public int getSeaLevel() -
topMaterial
@Deprecated public Optional<BlockState> topMaterial(SurfaceRules.RuleSource ruleSource, CarvingContext carvingContext, Function<BlockPos, Holder<Biome>> biomeGetter, ChunkAccess chunk, NoiseChunk noiseChunk, BlockPos pos, boolean underFluid) Deprecated. -
erodedBadlandsExtension
private void erodedBadlandsExtension(BlockColumn column, int blockX, int blockZ, int height, LevelHeightAccessor protoChunk) -
frozenOceanExtension
private void frozenOceanExtension(int minSurfaceLevel, Biome surfaceBiome, BlockColumn column, BlockPos.MutableBlockPos blockPos, int blockX, int blockZ, int height) -
generateBands
-
makeBands
private static void makeBands(RandomSource random, BlockState[] clayBands, int baseWidth, BlockState state) -
getBand
-