Package api.world.feature
Class AbstractTreeGrower
java.lang.Object
api.world.feature.AbstractTreeGrower
- Direct Known Subclasses:
BigTreeGrower,BushGrower,JungleTreeGrower,StandardTreeGrower,SwampTreeGrower,TaigaPineTreeGrower,TaigaTreeGrower
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intfinal Stringprotected final TreeGrowers.TreeWoodType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractTreeGrower(String name, int minTreeHeight, int maxTreeHeight, TreeGrowers.TreeWoodType woodType) -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanprotected booleanisLogReplaceable(World world, int x, int y, int z) protected booleanisReplaceable(World world, int x, int y, int z) protected voidprotected voidsetBlockAndMetadata(World world, int x, int y, int z, int id, int meta, boolean notify)
-
Field Details
-
name
-
woodType
-
minTreeHeight
protected int minTreeHeight -
maxTreeHeight
protected int maxTreeHeight
-
-
Constructor Details
-
AbstractTreeGrower
protected AbstractTreeGrower(String name, int minTreeHeight, int maxTreeHeight, TreeGrowers.TreeWoodType woodType)
-
-
Method Details
-
growTree
-
setBlock
-
setBlockAndMetadata
protected void setBlockAndMetadata(World world, int x, int y, int z, int id, int meta, boolean notify) -
isReplaceable
-
isLogReplaceable
-