枚举 EnderDragon.Phase
- 所有已实现的接口:
Serializable
,Comparable<EnderDragon.Phase>
,java.lang.constant.Constable
- 封闭接口:
- EnderDragon
Represents a phase or action that an Ender Dragon can perform.
-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
枚举常量概要
枚举常量说明The dragon will attack with dragon breath at its current location.The dragon will charge a player.The dragon will circle outside the ring of pillars if ender crystals remain or inside the ring if not.The dragon will fly to the vicinity of the portal and die.The dragon will fly towards the empty portal (approaching from the other side, if applicable).The dragon will hover at its current location, not performing any actions.The dragon will land on on the portal.The dragon will leave the portal.The dragon will roar before performing a breath attack.The dragon will search for a player to attack with dragon breath.The dragon will fly towards a targeted player and shoot a fireball when within 64 blocks. -
方法概要
修饰符和类型方法说明static EnderDragon.Phase
返回带有指定名称的该类型的枚举常量。static EnderDragon.Phase[]
values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。
-
枚举常量详细资料
-
CIRCLING
The dragon will circle outside the ring of pillars if ender crystals remain or inside the ring if not. -
STRAFING
The dragon will fly towards a targeted player and shoot a fireball when within 64 blocks. -
FLY_TO_PORTAL
The dragon will fly towards the empty portal (approaching from the other side, if applicable). -
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
The dragon will leave the portal. -
BREATH_ATTACK
The dragon will attack with dragon breath at its current location. -
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
The dragon will roar before performing a breath attack. -
CHARGE_PLAYER
The dragon will charge a player. -
DYING
The dragon will fly to the vicinity of the portal and die. -
HOVER
The dragon will hover at its current location, not performing any actions.
-
-
方法详细资料
-
values
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name
- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值
-