Class CocoaTree
java.lang.Object
net.glowstone.generator.objects.trees.GenericTree
net.glowstone.generator.objects.trees.JungleTree
net.glowstone.generator.objects.trees.CocoaTree
- All Implemented Interfaces:
TerrainObject
- Direct Known Subclasses:
SwampTree
-
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
ConstructorsConstructorDescriptionCocoaTree(Random random, BlockStateDelegate delegate) Initializes this tree, preparing it to attempt to generate. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddVinesOnLeaves(int baseX, int baseY, int baseZ, org.bukkit.World world, Random random) booleanGenerates this feature.Methods inherited from class net.glowstone.generator.objects.trees.GenericTree
blockTypeAt, canHeightFit, cannotGenerateAt, canPlace, canPlaceOn, generate, replaceIfAirOrLeaves, setHeight, setOverridables, setTypes
-
Constructor Details
-
CocoaTree
Initializes this tree, 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: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
-
addVinesOnLeaves
protected void addVinesOnLeaves(int baseX, int baseY, int baseZ, org.bukkit.World world, Random random)
-