Class CustomTree

java.lang.Object
io.github.addoncommunity.galactifun.api.worlds.populators.CustomTree

public class CustomTree extends Object
Class for a custom tree. Left subclassable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.bukkit.Material
     
    protected final org.bukkit.Material
     
    protected final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CustomTree(org.bukkit.Material log, org.bukkit.Material leaves, int trunkHeight)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    generate(org.bukkit.RegionAccessor accessor, org.bukkit.Location location)
    Generates this tree.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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