Class TallRedwoodTree
java.lang.Object
net.glowstone.generator.objects.trees.GenericTree
net.glowstone.generator.objects.trees.RedwoodTree
net.glowstone.generator.objects.trees.TallRedwoodTree
- All Implemented Interfaces:
TerrainObject
-
Field Summary
Fields inherited from class net.glowstone.generator.objects.trees.RedwoodTree
leavesHeight, maxRadius
Fields inherited from class net.glowstone.generator.objects.trees.GenericTree
delegate, height, LEAF_TYPES, leavesType, logType, overridables
Fields inherited from interface net.glowstone.generator.objects.TerrainObject
PLANT_TYPES
-
Constructor Summary
ConstructorDescriptionTallRedwoodTree
(Random random, BlockStateDelegate delegate) Initializes this tree with a random height and radius, preparing it to attempt to generate. -
Method Summary
Methods inherited from class net.glowstone.generator.objects.trees.RedwoodTree
canPlace, setLeavesHeight, setMaxRadius
Methods inherited from class net.glowstone.generator.objects.trees.GenericTree
blockTypeAt, canHeightFit, cannotGenerateAt, canPlaceOn, generate, replaceIfAirOrLeaves, setHeight, setOverridables, setTypes
-
Constructor Details
-
TallRedwoodTree
Initializes this tree with a random height and radius, preparing it to attempt to generate.- Parameters:
random
- the PRNGdelegate
- the BlockStateDelegate used to check for space and to fill wood and
-
-
Method Details
-
generate
Description copied from interface:TerrainObject
Generates this feature.- Specified by:
generate
in interfaceTerrainObject
- Overrides:
generate
in classRedwoodTree
- 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
-