程序包 org.bukkit

枚举 TreeSpecies

所有已实现的接口:
Serializable, Comparable<TreeSpecies>, java.lang.constant.Constable

@Deprecated public enum TreeSpecies extends Enum<TreeSpecies>
已过时。
已弃用, see usage methods for replacement(s)
代表不同的树木种类.
  • 枚举常量详细资料

    • GENERIC

      public static final TreeSpecies GENERIC
      已过时。
      代表普通树种(橡树).
    • REDWOOD

      public static final TreeSpecies REDWOOD
      已过时。
      代表叶子颜色较暗的树.
    • BIRCH

      public static final TreeSpecies BIRCH
      已过时。
      代表桦树.
    • JUNGLE

      public static final TreeSpecies JUNGLE
      已过时。
      代表丛林树.
    • ACACIA

      public static final TreeSpecies ACACIA
      已过时。
      代表金合欢树.
    • DARK_OAK

      public static final TreeSpecies DARK_OAK
      已过时。
      代表深色橡木树.
  • 方法详细资料

    • values

      public static TreeSpecies[] values()
      已过时。
      按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。
      返回:
      按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
    • valueOf

      public static TreeSpecies valueOf(String name)
      已过时。
      返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
      NullPointerException - 如果参数为空值
    • getData

      @Deprecated public byte getData()
      已过时。
      不安全的参数
      获取该树种相关的数据值。

      原文:Gets the associated data value representing this species

      返回:
      包含该物种相关数据值的字节
    • getByData

      @Deprecated @Nullable public static @Nullable TreeSpecies getByData(byte data)
      已过时。
      不安全的参数
      获取给定值代表的树种。

      原文:Gets the TreeSpecies with the given data value

      参数:
      data - 要获取的数据值
      返回:
      TreeSpecies所代表的值,如果不存在则为null