Class TreeGrower

java.lang.Object
api.world.feature.TreeGrower
Direct Known Subclasses:
TreeGrowerForest

public abstract class TreeGrower extends Object
  • Constructor Details

    • TreeGrower

      public TreeGrower()
  • Method Details

    • growTree

      public abstract boolean growTree(World world, Random rand, int x, int y, int z, boolean isWorldGen)
      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

      protected void setBlock(World world, int x, int y, int z, int id, boolean notify)
    • setBlockAndMetadata

      protected void setBlockAndMetadata(World world, int x, int y, int z, int id, int meta, boolean notify)