All Implemented Interfaces:
Finisher, Decorator, GenerationPass, Populator

public class MesaSurfaceDecorator extends DepthNoiseDecorator
Author:
DaPorkchop_
  • Field Details

    • ID

      public static final org.cloudburstmc.api.util.Identifier ID
    • BAND_COUNT

      protected static final int BAND_COUNT
      See Also:
      Constant Field Values
    • BAND_MASK

      protected static final int BAND_MASK
      See Also:
      Constant Field Values
    • ground

      protected org.cloudburstmc.api.block.BlockState ground
    • seaLevel

      protected int seaLevel
    • bandOffset

      protected net.daporkchop.lib.noise.NoiseSource bandOffset
    • bands

      protected org.cloudburstmc.api.block.BlockState[] bands
    • base

      protected ConstantBlock base
    • layers

      protected MesaSurfaceDecorator.Band[] layers
    • bandOffsetNoise

      protected NoiseGenerator bandOffsetNoise
  • Constructor Details

    • MesaSurfaceDecorator

      public MesaSurfaceDecorator()
  • Method Details

    • init0

      protected void init0(long levelSeed, long localSeed, StandardGenerator generator)
      Overrides:
      init0 in class DepthNoiseDecorator
    • decorate

      public void decorate(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.chunk.Chunk chunk, int x, int z)
      Description copied from interface: Decorator
      Decorates a given chunk.
      Parameters:
      random - an instance of PRandom for generating random numbers, initialized with a seed based on chunk's position
      chunk - the chunk to be decorated
      x - the X coordinate of the block column in the chunk to decorate
      z - the Z coordinate of the block column in the chunk to decorate
    • getBand

      protected org.cloudburstmc.api.block.BlockState getBand(int x, int y, int z)
    • getId

      public org.cloudburstmc.api.util.Identifier getId()
      Returns:
      the identifier of this generation pass