Package org.bukkit

Enum TreeType

java.lang.Object
java.lang.Enum<TreeType>
org.bukkit.TreeType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TreeType>, java.lang.constant.Constable

public enum TreeType
extends java.lang.Enum<TreeType>
Tree and organic structure types.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    ACACIA
    Acacia tree.
    BIG_TREE
    Regular tree, extra tall with branches
    BIRCH
    Birch tree
    BROWN_MUSHROOM
    Big brown mushroom; tall and umbrella-like
    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_REDWOOD
    Tall redwood tree with just a few leaves at the top
    TREE
    Regular tree, no branches
  • Method Summary

    Modifier and Type Method Description
    static TreeType valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static TreeType[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Method Details

    • values

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

      public static TreeType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null