Class FeatureDarkOakTree
java.lang.Object
org.cloudburstmc.server.level.feature.ReplacingWorldFeature
org.cloudburstmc.server.level.feature.tree.FeatureAbstractTree
org.cloudburstmc.server.level.feature.tree.FeatureHugeTree
org.cloudburstmc.server.level.feature.tree.FeatureDarkOakTree
- All Implemented Interfaces:
Predicate<org.cloudburstmc.api.block.BlockState>,WorldFeature,BlockFilter
Generates a dark oak tree.
- Author:
- DaPorkchop_
-
Field Summary
FieldsFields inherited from class org.cloudburstmc.server.level.feature.tree.FeatureAbstractTree
height, leaves, logFields inherited from interface org.cloudburstmc.server.level.generator.standard.misc.filter.BlockFilter
AIR, REPLACEABLE -
Constructor Summary
ConstructorsConstructorDescriptionFeatureDarkOakTree(@NonNull IntRange height, @NonNull GenerationTreeSpecies species)FeatureDarkOakTree(@NonNull IntRange height, BlockSelector log, BlockSelector leaves) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanPlace(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z, int height)protected voidfinish(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z, int height, org.cloudburstmc.api.block.BlockState log, org.cloudburstmc.api.block.BlockState leaves)protected voidplaceLeaves(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z, int height, org.cloudburstmc.api.block.BlockState log, org.cloudburstmc.api.block.BlockState leaves)protected voidplaceTrunk(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z, int height, org.cloudburstmc.api.block.BlockState log, org.cloudburstmc.api.block.BlockState leaves)Methods inherited from class org.cloudburstmc.server.level.feature.tree.FeatureHugeTree
place, placeCircularLeafLayerMethods inherited from class org.cloudburstmc.server.level.feature.tree.FeatureAbstractTree
chooseHeight, selectLeaves, selectLogMethods inherited from class org.cloudburstmc.server.level.feature.ReplacingWorldFeature
allNeighborsMatch, allNeighborsMatch, replaceGrassWithDirt, test, testOrLiquid, testOrLiquid
-
Field Details
-
DEFAULT_HEIGHT
-
-
Constructor Details
-
FeatureDarkOakTree
public FeatureDarkOakTree(@NonNull @NonNull IntRange height, @NonNull @NonNull GenerationTreeSpecies species) -
FeatureDarkOakTree
public FeatureDarkOakTree(@NonNull @NonNull IntRange height, BlockSelector log, BlockSelector leaves)
-
-
Method Details
-
canPlace
protected boolean canPlace(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z, int height)- Overrides:
canPlacein classFeatureHugeTree
-
placeLeaves
protected void placeLeaves(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z, int height, org.cloudburstmc.api.block.BlockState log, org.cloudburstmc.api.block.BlockState leaves)- Specified by:
placeLeavesin classFeatureAbstractTree
-
placeTrunk
protected void placeTrunk(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z, int height, org.cloudburstmc.api.block.BlockState log, org.cloudburstmc.api.block.BlockState leaves)- Overrides:
placeTrunkin classFeatureHugeTree
-
finish
protected void finish(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z, int height, org.cloudburstmc.api.block.BlockState log, org.cloudburstmc.api.block.BlockState leaves)- Overrides:
finishin classFeatureHugeTree
-