枚举 EnderDragon.Phase

java.lang.Object
java.lang.Enum<EnderDragon.Phase>
org.bukkit.entity.EnderDragon.Phase
所有已实现的接口:
Serializable, Comparable<EnderDragon.Phase>, java.lang.constant.Constable
封闭接口:
EnderDragon

public static enum EnderDragon.Phase extends Enum<EnderDragon.Phase>
Represents a phase or action that an Ender Dragon can perform.
  • 枚举常量详细资料

    • CIRCLING

      public static final EnderDragon.Phase CIRCLING
      The dragon will circle outside the ring of pillars if ender crystals remain or inside the ring if not.
    • STRAFING

      public static final EnderDragon.Phase STRAFING
      The dragon will fly towards a targeted player and shoot a fireball when within 64 blocks.
    • FLY_TO_PORTAL

      public static final EnderDragon.Phase FLY_TO_PORTAL
      The dragon will fly towards the empty portal (approaching from the other side, if applicable).
    • LAND_ON_PORTAL

      public static final EnderDragon.Phase LAND_ON_PORTAL
      The dragon will land on on the portal. If the dragon is not near the portal, it will fly to it before mounting.
    • LEAVE_PORTAL

      public static final EnderDragon.Phase LEAVE_PORTAL
      The dragon will leave the portal.
    • BREATH_ATTACK

      public static final EnderDragon.Phase BREATH_ATTACK
      The dragon will attack with dragon breath at its current location.
    • SEARCH_FOR_BREATH_ATTACK_TARGET

      public static final EnderDragon.Phase SEARCH_FOR_BREATH_ATTACK_TARGET
      The dragon will search for a player to attack with dragon breath. If no player is close enough to the dragon for 5 seconds, the dragon will charge at a player within 150 blocks or will take off and begin circling if no player is found.
    • ROAR_BEFORE_ATTACK

      public static final EnderDragon.Phase ROAR_BEFORE_ATTACK
      The dragon will roar before performing a breath attack.
    • CHARGE_PLAYER

      public static final EnderDragon.Phase CHARGE_PLAYER
      The dragon will charge a player.
    • DYING

      public static final EnderDragon.Phase DYING
      The dragon will fly to the vicinity of the portal and die.
    • HOVER

      public static final EnderDragon.Phase HOVER
      The dragon will hover at its current location, not performing any actions.
  • 方法详细资料

    • values

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

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