Class AbstractGenerationPass

java.lang.Object
org.cloudburstmc.server.level.generator.standard.misc.AbstractGenerationPass
All Implemented Interfaces:
GenerationPass
Direct Known Subclasses:
BedrockDecorator, ChancePopulator, ComplexBiomeMap, ConstantBiomeMap, DepthNoiseDecorator, DistanceSelectionDecorator, DistanceSelectionPopulator, EndDensitySource, HeightSelectionDecorator, NetherDensitySource, NoiseSelectionDecorator, NoiseSelectionPopulator, VanillaDensitySource

public abstract class AbstractGenerationPass extends Object implements GenerationPass
Base class for all implementations of GenerationPass.

Allows the user to override the generation of the local seed in order to ensure consistent generation even if other generation passes are added, modified or removed.

Author:
DaPorkchop_
  • Constructor Details

    • AbstractGenerationPass

      public AbstractGenerationPass()
  • Method Details

    • init

      public final void init(long levelSeed, long localSeed, StandardGenerator generator)
      Description copied from interface: GenerationPass
      Prepares this instance for actual generation.
      Specified by:
      init in interface GenerationPass
      Parameters:
      levelSeed - the level seed, as defined in cloudburst.yml
      localSeed - a seed defined specifically for this generation pass
      generator - the instance of StandardGenerator that this generation pass will be used by
    • init0

      protected void init0(long levelSeed, long localSeed, StandardGenerator generator)
    • setSeed

      protected void setSeed(String seed)