All Implemented Interfaces:
Finisher, Decorator, GenerationPass, Populator

public class DeepSurfaceDecorator extends SurfaceDecorator
Variant of SurfaceDecorator that adds an additional layer of blocks under the main layers.
Author:
DaPorkchop_
  • Field Details

    • ID

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

      protected org.cloudburstmc.api.block.BlockState deep
    • deepSize

      protected IntRange deepSize
  • Constructor Details

    • DeepSurfaceDecorator

      public DeepSurfaceDecorator()
  • Method Details

    • init0

      public void init0(long levelSeed, long localSeed, StandardGenerator generator)
      Overrides:
      init0 in class SurfaceDecorator
    • 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.
      Specified by:
      decorate in interface Decorator
      Overrides:
      decorate in class SurfaceDecorator
      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
    • getId

      public org.cloudburstmc.api.util.Identifier getId()
      Specified by:
      getId in interface Decorator
      Specified by:
      getId in interface Finisher
      Specified by:
      getId in interface GenerationPass
      Specified by:
      getId in interface Populator
      Overrides:
      getId in class SurfaceDecorator
      Returns:
      the identifier of this generation pass