Package api.world.feature
Class TreeGrower
java.lang.Object
api.world.feature.TreeGrower
- Direct Known Subclasses:
TreeGrowerForest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanGrow a tree at the specified locationprotected voidprotected voidsetBlockAndMetadata(World world, int x, int y, int z, int id, int meta, boolean notify)
-
Constructor Details
-
TreeGrower
public TreeGrower()
-
-
Method Details
-
growTree
Grow a tree at the specified location- Parameters:
world-rand-x-y-z-isWorldGen- Whether block updates should be triggered when growing the tree. This should be true when grown from a sapling and false when generated at world gen- Returns:
-
setBlock
-
setBlockAndMetadata
protected void setBlockAndMetadata(World world, int x, int y, int z, int id, int meta, boolean notify)
-