Class CustomTree
java.lang.Object
io.github.addoncommunity.galactifun.api.worlds.populators.CustomTree
Class for a custom tree. Left subclassable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.bukkit.Materialprotected final org.bukkit.Materialprotected final int -
Constructor Summary
ConstructorsConstructorDescriptionCustomTree(org.bukkit.Material log, org.bukkit.Material leaves, int trunkHeight) -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate(org.bukkit.RegionAccessor accessor, org.bukkit.Location location) Generates this tree.
-
Field Details
-
log
protected final org.bukkit.Material log -
leaves
protected final org.bukkit.Material leaves -
trunkHeight
protected final int trunkHeight
-
-
Constructor Details
-
CustomTree
public CustomTree(org.bukkit.Material log, org.bukkit.Material leaves, int trunkHeight)
-
-
Method Details
-
generate
public void generate(@Nonnull org.bukkit.RegionAccessor accessor, @Nonnull org.bukkit.Location location) Generates this tree. Default implementation makes an oak tree top- Parameters:
location- the location of the bottom log. This is modified
-