public static enum EnderDragon.Phase extends java.lang.Enum<EnderDragon.Phase>
枚举常量和说明 |
---|
BREATH_ATTACK
The dragon will attack with dragon breath at its current location.
|
CHARGE_PLAYER
The dragon will charge a player.
|
CIRCLING
The dragon will circle outside the ring of pillars if ender
crystals remain or inside the ring if not.
|
DYING
The dragon will fly to the vicinity of the portal and die.
|
FLY_TO_PORTAL
The dragon will fly towards the empty portal (approaching
from the other side, if applicable).
|
HOVER
The dragon will hover at its current location, not performing any actions.
|
LAND_ON_PORTAL
The dragon will land on on the portal.
|
LEAVE_PORTAL
The dragon will leave the portal.
|
ROAR_BEFORE_ATTACK
The dragon will roar before performing a breath attack.
|
SEARCH_FOR_BREATH_ATTACK_TARGET
The dragon will search for a player to attack with dragon breath.
|
STRAFING
The dragon will fly towards a targeted player and shoot a
fireball when within 64 blocks.
|
限定符和类型 | 方法和说明 |
---|---|
static EnderDragon.Phase |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static EnderDragon.Phase[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final EnderDragon.Phase CIRCLING
public static final EnderDragon.Phase STRAFING
public static final EnderDragon.Phase FLY_TO_PORTAL
public static final EnderDragon.Phase LAND_ON_PORTAL
public static final EnderDragon.Phase LEAVE_PORTAL
public static final EnderDragon.Phase BREATH_ATTACK
public static final EnderDragon.Phase SEARCH_FOR_BREATH_ATTACK_TARGET
public static final EnderDragon.Phase ROAR_BEFORE_ATTACK
public static final EnderDragon.Phase CHARGE_PLAYER
public static final EnderDragon.Phase DYING
public static final EnderDragon.Phase HOVER
public static EnderDragon.Phase[] values()
for (EnderDragon.Phase c : EnderDragon.Phase.values()) System.out.println(c);
public static EnderDragon.Phase valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值