The following methods can be used to generate a tree naturally (as if it was grown from a sapling) into the world.
boolean generateTree(Location loc, TreeType type);
boolean generateTree(Location loc, TreeType type, BlockChangeDelegate delegate);
TreeType enum
Type | Description |
---|---|
ACACIA | Acacia tree |
BIG_TREE | Regular tree, extra tall with branches |
BIRCH | Birch tree |
BROWN_MUSHROOM | Big brown mushroom; tall and umbrella-like |
CHORUS_PLANT | Large plant native to The End |
COCOA_TREE | Jungle tree with cocoa plants; 1 block wide |
DARK_OAK | Dark Oak tree. |
JUNGLE | Standard jungle tree; 4 blocks wide and tall |
JUNGLE_BUSH | Small bush that grows in the jungle |
MEGA_REDWOOD | Mega redwood tree; 4 blocks wide and tall |
RED_MUSHROOM | Big red mushroom; short and fat |
REDWOOD | Redwood tree, shaped like a pine tree |
SMALL_JUNGLE | Smaller jungle tree; 1 block wide |
SWAMP | Swamp tree (regular with vines on the side) |
TALL_BIRCH | Tall birch tree |
TALL_REDWOD | Tall redwood tree with just a few leaves at the top |
TREE | Regular tree, no branches |
Both signatures will return true if the tree was sucessfully generated, false otherwise.