Class MegaRedwoodTree
java.lang.Object
net.glowstone.generator.objects.trees.GenericTree
net.glowstone.generator.objects.trees.MegaJungleTree
net.glowstone.generator.objects.trees.MegaRedwoodTree
- All Implemented Interfaces:
TerrainObject
- Direct Known Subclasses:
MegaPineTree
-
Field Summary
FieldsFields inherited from class net.glowstone.generator.objects.trees.GenericTree
delegate, height, LEAF_TYPES, leavesType, logType, overridablesFields inherited from interface net.glowstone.generator.objects.TerrainObject
PLANT_TYPES -
Constructor Summary
ConstructorsConstructorDescriptionMegaRedwoodTree(Random random, BlockStateDelegate delegate) Initializes this tree with a random height, preparing it to attempt to generate. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGenerates this feature.protected voidgenerateDirtBelowTrunk(org.bukkit.World world, int blockX, int blockY, int blockZ) protected final voidsetLeavesHeight(int leavesHeight) Methods inherited from class net.glowstone.generator.objects.trees.MegaJungleTree
canPlace, canPlaceOn, generateLeaves, generateTrunkMethods inherited from class net.glowstone.generator.objects.trees.GenericTree
blockTypeAt, canHeightFit, cannotGenerateAt, generate, replaceIfAirOrLeaves, setHeight, setOverridables, setTypes
-
Field Details
-
leavesHeight
protected int leavesHeight
-
-
Constructor Details
-
MegaRedwoodTree
Initializes this tree with a random height, preparing it to attempt to generate.- Parameters:
random- the PRNGdelegate- the BlockStateDelegate used to check for space and to fill wood and leaf
-
-
Method Details
-
setLeavesHeight
protected final void setLeavesHeight(int leavesHeight) -
generate
Description copied from interface:TerrainObjectGenerates this feature.- Specified by:
generatein interfaceTerrainObject- Overrides:
generatein classMegaJungleTree- Parameters:
world- the world to generate inrandom- the PRNG that will choose the size and a few details of the shapeblockX- the base X coordinateblockY- the base Y coordinateblockZ- the base Z coordinate- Returns:
- true if successfully generated
-
generateDirtBelowTrunk
protected void generateDirtBelowTrunk(org.bukkit.World world, int blockX, int blockY, int blockZ) - Overrides:
generateDirtBelowTrunkin classMegaJungleTree
-