Class HugeTreePopulator
java.lang.Object
org.cloudburstmc.server.level.generator.standard.misc.AbstractGenerationPass
org.cloudburstmc.server.level.generator.standard.population.ChancePopulator
org.cloudburstmc.server.level.generator.standard.population.tree.AbstractTreePopulator
org.cloudburstmc.server.level.generator.standard.population.tree.HugeTreePopulator
- All Implemented Interfaces:
Finisher,GenerationPass,Populator
A populator that places simple trees, with a similar shape to vanilla oak/birch trees.
- Author:
- DaPorkchop_
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cloudburstmc.server.level.generator.standard.population.ChancePopulator
ChancePopulator.ColumnNested classes/interfaces inherited from interface org.cloudburstmc.server.level.generator.standard.population.Populator
Populator.SkipRegistrationAsFinisher -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BlockSelectorprotected booleanstatic org.cloudburstmc.api.util.Identifierprotected WorldFeature[]Fields inherited from class org.cloudburstmc.server.level.generator.standard.population.tree.AbstractTreePopulator
height, on, replaceFields inherited from class org.cloudburstmc.server.level.generator.standard.population.ChancePopulator
chanceFields 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)protected voidplaceTree(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.ChunkManager level, int x, int y, int z)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 -
below
-
types
-
grid
protected boolean grid
-
-
Constructor Details
-
HugeTreePopulator
public HugeTreePopulator()
-
-
Method Details
-
init0
- Overrides:
init0in classAbstractTreePopulator
-
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- Overrides:
populatein classAbstractTreePopulator- 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
-
placeTree
protected void placeTree(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.ChunkManager level, int x, int y, int z)- Specified by:
placeTreein classAbstractTreePopulator
-
getId
public org.cloudburstmc.api.util.Identifier getId()- Returns:
- the identifier of this generation pass
-