Class HugeTreesGenerator
java.lang.Object
cn.nukkit.level.generator.object.BasicGenerator
cn.nukkit.level.generator.object.tree.TreeGenerator
cn.nukkit.level.generator.object.tree.HugeTreesGenerator
- Direct Known Subclasses:
ObjectJungleBigTree
-
Field Summary
-
Constructor Summary
ConstructorDescriptionHugeTreesGenerator
(int baseHeightIn, int extraRandomHeightIn, Block woodMetadataIn, Block leavesMetadataIn) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
ensureGrowable
(ChunkManager worldIn, NukkitRandom rand, Vector3 treePos, int p_175929_4_) protected int
getHeight
(NukkitRandom rand) protected void
growLeavesLayer
(ChunkManager worldIn, Vector3 layerCenter, int width) protected void
growLeavesLayerStrict
(ChunkManager worldIn, Vector3 layerCenter, int width) Methods inherited from class cn.nukkit.level.generator.object.tree.TreeGenerator
canGrowInto, generateSaplings, setDirtAt, setDirtAt
Methods inherited from class cn.nukkit.level.generator.object.BasicGenerator
generate, setBlock, setBlockAndNotifyAdequately, setBlockAndNotifyAdequately, setDecorationDefaults
-
Field Details
-
baseHeight
protected final int baseHeightThe base height of the tree -
woodMetadata
Sets the metadata for the wood blocks used -
leavesMetadata
Sets the metadata for the leaves used in huge trees -
extraRandomHeight
protected int extraRandomHeight
-
-
Constructor Details
-
HugeTreesGenerator
-
-
Method Details
-
getHeight
-
ensureGrowable
protected boolean ensureGrowable(ChunkManager worldIn, NukkitRandom rand, Vector3 treePos, int p_175929_4_) -
growLeavesLayerStrict
-
growLeavesLayer
-