接口 EnderDragon

所有超级接口:
Attributable, Boss, CommandSender, ComplexLivingEntity, Damageable, Enemy, Entity, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator

public interface EnderDragon extends ComplexLivingEntity, Boss, Mob, Enemy
代表末影龙.
  • 方法详细资料

    • getPhase

      获取末影龙正在执行的阶段.

      原文: Gets the current phase that the dragon is performing.

      返回:
      当前阶段
    • setPhase

      void setPhase(@NotNull @NotNull EnderDragon.Phase phase)
      设置末影龙的下一个阶段.

      原文: Sets the next phase for the dragon to perform.

      参数:
      phase - 下一阶段
    • getDragonBattle

      @Nullable @Nullable DragonBattle getDragonBattle()
      Get the DragonBattle associated with this EnderDragon.
      This will return null for the following reasons:
      • The EnderDragon is not in the End dimension
      • The EnderDragon was summoned by command/API
      返回:
      the dragon battle
      另请参阅:
    • getDeathAnimationTicks

      int getDeathAnimationTicks()
      获取这条末影龙的死亡动画开始的到当前时间(以 tick 为单位). 如果这条末影龙还活着,则返回 0。这个值永远不会超过 200(动画的长度).

      原文: Get the current time in ticks relative to the start of this dragon's death animation. If this dragon is alive, 0 will be returned. This value will never exceed 200 (the length of the animation).

      返回:
      当前末影龙的死亡动画tick