枚举的使用
org.bukkit.entity.EnderDragon.Phase
-
org.bukkit.entity中EnderDragon.Phase的使用
修饰符和类型方法说明EnderDragon.getPhase()
Gets the current phase that the dragon is performing.static EnderDragon.Phase
返回带有指定名称的该类型的枚举常量。static EnderDragon.Phase[]
EnderDragon.Phase.values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。修饰符和类型方法说明void
EnderDragon.setPhase
(EnderDragon.Phase phase) Sets the next phase for the dragon to perform. -
org.bukkit.event.entity中EnderDragon.Phase的使用
修饰符和类型方法说明EnderDragonChangePhaseEvent.getCurrentPhase()
Gets the current phase that the dragon is in.EnderDragonChangePhaseEvent.getNewPhase()
Gets the new phase that the dragon will switch to.修饰符和类型方法说明void
EnderDragonChangePhaseEvent.setNewPhase
(EnderDragon.Phase newPhase) Sets the new phase for the ender dragon.限定符构造器说明EnderDragonChangePhaseEvent
(EnderDragon enderDragon, EnderDragon.Phase currentPhase, EnderDragon.Phase newPhase)