枚举的使用
org.bukkit.entity.EnderDragon.Phase
使用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()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。参数类型为EnderDragon.Phase的org.bukkit.entity中的方法修饰符和类型方法说明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.参数类型为EnderDragon.Phase的org.bukkit.event.entity中的方法修饰符和类型方法说明void
EnderDragonChangePhaseEvent.setNewPhase
(EnderDragon.Phase newPhase) Sets the new phase for the ender dragon.参数类型为EnderDragon.Phase的org.bukkit.event.entity中的构造器限定符构造器说明EnderDragonChangePhaseEvent
(EnderDragon enderDragon, EnderDragon.Phase currentPhase, EnderDragon.Phase newPhase)