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
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(long levelSeed, long localSeed, StandardGenerator generator)Prepares this instance for actual generation.protected voidinit0(long levelSeed, long localSeed, StandardGenerator generator)protected voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cloudburstmc.server.level.generator.standard.misc.GenerationPass
getId
-
Constructor Details
-
AbstractGenerationPass
public AbstractGenerationPass()
-
-
Method Details
-
init
Description copied from interface:GenerationPassPrepares this instance for actual generation.- Specified by:
initin interfaceGenerationPass- Parameters:
levelSeed- the level seed, as defined in cloudburst.ymllocalSeed- a seed defined specifically for this generation passgenerator- the instance ofStandardGeneratorthat this generation pass will be used by
-
init0
-
setSeed
-