Package net.glowstone.constants
Class GlowTree
java.lang.Object
net.glowstone.constants.GlowTree
-
Method Summary
Modifier and TypeMethodDescriptionstatic GenericTree
newInstance
(org.bukkit.TreeType type, Random random, BlockStateDelegate delegate) Creates a tree of any vanilla type.
-
Method Details
-
newInstance
public static GenericTree newInstance(org.bukkit.TreeType type, Random random, BlockStateDelegate delegate) Creates a tree of any vanilla type.- Parameters:
type
- the tree typerandom
- the PRNGdelegate
- the BlockStateDelegate used to check for space and to fill wood and leaf blocks- Returns:
- a new tree of
type
-