Class DistanceSelectionPopulator
java.lang.Object
org.cloudburstmc.server.level.generator.standard.misc.AbstractGenerationPass
org.cloudburstmc.server.level.generator.standard.population.DistanceSelectionPopulator
- All Implemented Interfaces:
Finisher,GenerationPass,Populator
- Author:
- DaPorkchop_
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cloudburstmc.server.level.generator.standard.population.Populator
Populator.SkipRegistrationAsFinisher -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Populator[]protected Populator[]static org.cloudburstmc.api.util.Identifierprotected Populator[]protected doubleprotected doubleprotected doubleprotected doubleFields inherited from interface org.cloudburstmc.server.level.generator.standard.population.Populator
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.cloudburstmc.api.util.IdentifiergetId()protected voidinit0(long levelSeed, long localSeed, StandardGenerator generator)voidpopulate(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.ChunkManager level, int blockX, int blockZ)Populates a given chunk.Methods inherited from class org.cloudburstmc.server.level.generator.standard.misc.AbstractGenerationPass
init, setSeedMethods 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
init
-
Field Details
-
ID
public static final org.cloudburstmc.api.util.Identifier ID -
minSq
protected double minSq -
maxSq
protected double maxSq -
below
-
above
-
in
-
min
protected double min -
max
protected double max
-
-
Constructor Details
-
DistanceSelectionPopulator
public DistanceSelectionPopulator()
-
-
Method Details
-
init0
- Overrides:
init0in classAbstractGenerationPass
-
populate
public void populate(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.ChunkManager level, int blockX, int blockZ)Description copied from interface:PopulatorPopulates a given chunk.- Specified by:
populatein interfacePopulator- Parameters:
random- an instance ofPRandomfor generating random numbers, initialized with a seed based on chunk's positionlevel- aChunkManagercontaining only a 3x3 square of generated chunks, centered around the chunk being populatedblockX- the X coordinate of the block column to populateblockZ- the Z coordinate of the block column to populate
-
getId
public org.cloudburstmc.api.util.Identifier getId()
-