Enum Class TreeSpecies

java.lang.Object
java.lang.Enum<TreeSpecies>
ch.njol.skript.util.TreeSpecies
All Implemented Interfaces:
Serializable, Comparable<TreeSpecies>, Constable

public enum TreeSpecies extends Enum<TreeSpecies>
Repesents a grouping of Bukkkit TreeTypes
  • Enum Constant Details

    • TREE

      public static final TreeSpecies TREE
    • OAK

      public static final TreeSpecies OAK
    • SMALL_OAK

      public static final TreeSpecies SMALL_OAK
    • BIG_OAK

      public static final TreeSpecies BIG_OAK
    • SPRUCE

      public static final TreeSpecies SPRUCE
    • SMALL_SPRUCE

      public static final TreeSpecies SMALL_SPRUCE
    • BIG_SPRUCE

      public static final TreeSpecies BIG_SPRUCE
    • MEGA_SPRUCE

      public static final TreeSpecies MEGA_SPRUCE
    • BIRCH

      public static final TreeSpecies BIRCH
    • SMALL_BIRCH

      public static final TreeSpecies SMALL_BIRCH
    • TALL_BIRCH

      public static final TreeSpecies TALL_BIRCH
    • JUNGLE

      public static final TreeSpecies JUNGLE
    • SMALL_JUNGLE

      public static final TreeSpecies SMALL_JUNGLE
    • BIG_JUNGLE

      public static final TreeSpecies BIG_JUNGLE
    • COCOA_TREE

      public static final TreeSpecies COCOA_TREE
    • JUNGLE_BUSH

      public static final TreeSpecies JUNGLE_BUSH
    • ACACIA

      public static final TreeSpecies ACACIA
    • DARK_OAK

      public static final TreeSpecies DARK_OAK
    • SWAMP

      public static final TreeSpecies SWAMP
    • MUSHROOM

      public static final TreeSpecies MUSHROOM
    • RED_MUSHROOM

      public static final TreeSpecies RED_MUSHROOM
    • BROWN_MUSHROOM

      public static final TreeSpecies BROWN_MUSHROOM
    • MANGROVE

      public static final TreeSpecies MANGROVE
    • SMALL_MANGROVE

      public static final TreeSpecies SMALL_MANGROVE
    • BIG_MANGROVE

      public static final TreeSpecies BIG_MANGROVE
    • AZALEA

      public static final TreeSpecies AZALEA
    • PALE_OAK

      public static final TreeSpecies PALE_OAK
    • PALE_OAK_NORMAL

      public static final TreeSpecies PALE_OAK_NORMAL
    • PALE_OAK_CREAKING

      public static final TreeSpecies PALE_OAK_CREAKING
    • CHERRY

      public static final TreeSpecies CHERRY
    • CRIMSON_FUNGUS

      public static final TreeSpecies CRIMSON_FUNGUS
    • WARPED_FUNGUS

      public static final TreeSpecies WARPED_FUNGUS
    • CHORUS_PLANT

      public static final TreeSpecies CHORUS_PLANT
  • Method Details

    • values

      public static TreeSpecies[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TreeSpecies valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • grow

      public void grow(org.bukkit.Location location)
      Grow a tree at a location.

      If the species is a group, a random tree type is selected.

      Parameters:
      location - Location to grow the tree at
    • grow

      public void grow(org.bukkit.block.Block block)
      Grow a tree at a location.

      If the species is a group, a random tree type is selected.

      Parameters:
      block - Block to grow the tree at
    • getTypes

      public org.bukkit.TreeType[] getTypes()
      Get the TreeTypes that make up this species.
      Returns:
      TreeTypes that make up this species
    • is

      public boolean is(org.bukkit.TreeType type)
      Check if this species contains a specific tree type.
      Parameters:
      type - TreeType to check for
      Returns:
      True if the species contains the type, false otherwise