Class BadlandsSurfaceBuilder
java.lang.Object
net.minecraft.world.gen.surfacebuilder.SurfaceBuilder<TernarySurfaceConfig>
net.minecraft.world.gen.surfacebuilder.BadlandsSurfaceBuilder
- Direct Known Subclasses:
ErodedBadlandsSurfaceBuilder
,WoodedBadlandsSurfaceBuilder
public class BadlandsSurfaceBuilder extends SurfaceBuilder<TernarySurfaceConfig>
-
Field Summary
Fields Modifier and Type Field Description private static BlockState
BROWN_TERRACOTTA
protected OctaveSimplexNoiseSampler
heightCutoffNoise
protected OctaveSimplexNoiseSampler
heightNoise
protected BlockState[]
layerBlocks
protected OctaveSimplexNoiseSampler
layerNoise
private static BlockState
LIGHT_GRAY_TERRACOTTA
private static BlockState
ORANGE_TERRACOTTA
private static BlockState
RED_TERRACOTTA
protected long
seed
private static BlockState
TERRACOTTA
private static BlockState
WHITE_TERRACOTTA
private static BlockState
YELLOW_TERRACOTTA
Fields inherited from class net.minecraft.world.gen.surfacebuilder.SurfaceBuilder
BADLANDS, BADLANDS_CONFIG, BASALT_DELTA_CONFIG, BASALT_DELTAS, COARSE_DIRT_CONFIG, CRIMSON_NYLIUM_CONFIG, DEFAULT, END_CONFIG, ERODED_BADLANDS, FROZEN_OCEAN, GIANT_TREE_TAIGA, GRASS_CONFIG, GRASS_SAND_UNDERWATER_CONFIG, GRAVEL_CONFIG, GRAVELLY_MOUNTAIN, MOUNTAIN, MYCELIUM_CONFIG, NETHER, NETHER_CONFIG, NETHER_FOREST, NOPE, PODZOL_CONFIG, SAND_CONFIG, SAND_SAND_UNDERWATER_CONFIG, SHATTERED_SAVANNA, SOUL_SAND_CONFIG, SOUL_SAND_VALLEY, STONE_CONFIG, SWAMP, WARPED_NYLIUM_CONFIG, WOODED_BADLANDS
-
Constructor Summary
Constructors Constructor Description BadlandsSurfaceBuilder(com.mojang.serialization.Codec<TernarySurfaceConfig> codec)
-
Method Summary
Modifier and Type Method Description protected BlockState
calculateLayerBlockState(int x, int y, int z)
void
generate(Random random, Chunk chunk, Biome biome, int int2, int int3, int int4, double double2, BlockState blockState, BlockState blockState2, int int5, long long2, TernarySurfaceConfig ternarySurfaceConfig)
protected void
initLayerBlocks(long seed)
Seeds the layers by creating multiple bands of colored terracotta.void
initSeed(long seed)
Methods inherited from class net.minecraft.world.gen.surfacebuilder.SurfaceBuilder
getCodec, withConfig
-
Field Details
-
WHITE_TERRACOTTA
-
ORANGE_TERRACOTTA
-
TERRACOTTA
-
YELLOW_TERRACOTTA
-
BROWN_TERRACOTTA
-
RED_TERRACOTTA
-
LIGHT_GRAY_TERRACOTTA
-
layerBlocks
-
seed
protected long seed -
heightCutoffNoise
-
heightNoise
-
layerNoise
-
-
Constructor Details
-
BadlandsSurfaceBuilder
-
-
Method Details
-
generate
public void generate(Random random, Chunk chunk, Biome biome, int int2, int int3, int int4, double double2, BlockState blockState, BlockState blockState2, int int5, long long2, TernarySurfaceConfig ternarySurfaceConfig)- Specified by:
generate
in classSurfaceBuilder<TernarySurfaceConfig>
-
initSeed
public void initSeed(long seed)- Overrides:
initSeed
in classSurfaceBuilder<TernarySurfaceConfig>
-
initLayerBlocks
protected void initLayerBlocks(long seed)Seeds the layers by creating multiple bands of colored terracotta. The yellow and red terracotta bands are one block thick while the brown terracotta band is 2 blocks thick. Then, a gradient band is created with white terracotta in the center and light gray terracotta on the top and bottom. -
calculateLayerBlockState
-