枚举 Pose

java.lang.Object
java.lang.Enum<Pose>
org.bukkit.entity.Pose
所有已实现的接口:
Serializable, Comparable<Pose>, Constable

public enum Pose extends Enum<Pose>
代表生物的动作与姿态.
  • 枚举常量详细资料

    • STANDING

      public static final Pose STANDING
      生物普通站立姿态.
    • FALL_FLYING

      public static final Pose FALL_FLYING
      生物正在滑翔.
    • SLEEPING

      public static final Pose SLEEPING
      生物处于睡梦中...
    • SWIMMING

      public static final Pose SWIMMING
      生物在游泳.
    • SPIN_ATTACK

      public static final Pose SPIN_ATTACK
      生物使用三叉戟在水/雨/雪中激流(快速移动).
    • SNEAKING

      public static final Pose SNEAKING
      生物正在潜行.
    • LONG_JUMPING

      public static final Pose LONG_JUMPING
      生物在跳远/长跳.
    • DYING

      public static final Pose DYING
      生物死亡倒地.
    • CROAKING

      public static final Pose CROAKING
      Entity is croaking.
    • USING_TONGUE

      public static final Pose USING_TONGUE
      Entity is using its tongue.
    • SITTING

      public static final Pose SITTING
      Entity is sitting.
    • ROARING

      public static final Pose ROARING
      Entity is roaring.
    • SNIFFING

      public static final Pose SNIFFING
      Entity is sniffing.
    • EMERGING

      public static final Pose EMERGING
      Entity is emerging.
    • DIGGING

      public static final Pose DIGGING
      Entity is digging.
    • SLIDING

      public static final Pose SLIDING
      Entity is sliding.
    • SHOOTING

      public static final Pose SHOOTING
      Entity is shooting.
    • INHALING

      public static final Pose INHALING
      Entity is inhaling.
  • 方法详细资料

    • values

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

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