Class MegaJungleTree
java.lang.Object
net.glowstone.generator.objects.trees.GenericTree
net.glowstone.generator.objects.trees.MegaJungleTree
- All Implemented Interfaces:
 TerrainObject
- Direct Known Subclasses:
 MegaRedwoodTree
- 
Field Summary
Fields 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
ConstructorsConstructorDescriptionMegaJungleTree(Random random, BlockStateDelegate delegate) Initializes this tree with a random height, preparing it to attempt to generate. - 
Method Summary
Modifier and TypeMethodDescriptionbooleancanPlace(int baseX, int baseY, int baseZ, org.bukkit.World world) Checks whether this tree has enough space to grow.booleancanPlaceOn(org.bukkit.block.BlockState soil) Checks whether this tree can grow on top of the given block.booleanGenerates this feature.protected voidgenerateDirtBelowTrunk(org.bukkit.World world, int blockX, int blockY, int blockZ) protected voidgenerateLeaves(int sourceX, int sourceY, int sourceZ, int radius, boolean odd, org.bukkit.World world) protected voidgenerateTrunk(org.bukkit.World world, int blockX, int blockY, int blockZ) Methods inherited from class net.glowstone.generator.objects.trees.GenericTree
blockTypeAt, canHeightFit, cannotGenerateAt, generate, replaceIfAirOrLeaves, setHeight, setOverridables, setTypes 
- 
Constructor Details
- 
MegaJungleTree
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
 
 - 
 - 
Method Details
- 
canPlaceOn
public boolean canPlaceOn(org.bukkit.block.BlockState soil) Description copied from class:GenericTreeChecks whether this tree can grow on top of the given block.- Overrides:
 canPlaceOnin classGenericTree- Parameters:
 soil- the block we're growing on- Returns:
 - true if this tree can grow on the type of block below it; false otherwise
 
 - 
canPlace
public boolean canPlace(int baseX, int baseY, int baseZ, org.bukkit.World world) Description copied from class:GenericTreeChecks whether this tree has enough space to grow.- Overrides:
 canPlacein classGenericTree- Parameters:
 baseX- the X coordinate of the base of the trunkbaseY- the Y coordinate of the base of the trunkbaseZ- the Z coordinate of the base of the trunkworld- the world to grow in- Returns:
 - true if this tree has space to grow; false otherwise
 
 - 
generate
Description copied from interface:TerrainObjectGenerates this feature.- Specified by:
 generatein interfaceTerrainObject- Overrides:
 generatein classGenericTree- 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
 
 - 
generateLeaves
protected void generateLeaves(int sourceX, int sourceY, int sourceZ, int radius, boolean odd, org.bukkit.World world)  - 
generateTrunk
protected void generateTrunk(org.bukkit.World world, int blockX, int blockY, int blockZ)  - 
generateDirtBelowTrunk
protected void generateDirtBelowTrunk(org.bukkit.World world, int blockX, int blockY, int blockZ)  
 -