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 Details

  • Constructor Details

    • BadlandsSurfaceBuilder

      public BadlandsSurfaceBuilder​(com.mojang.serialization.Codec<TernarySurfaceConfig> codec)
  • 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 class SurfaceBuilder<TernarySurfaceConfig>
    • initSeed

      public void initSeed​(long seed)
      Overrides:
      initSeed in class SurfaceBuilder<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

      protected BlockState calculateLayerBlockState​(int x, int y, int z)