Interface EnderDragon

All Superinterfaces:
Attributable, Audience, Boss, CommandSender, ComplexLivingEntity, Damageable, Enemy, Entity, Frictional, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, Pointered, ProjectileSource, ServerOperator, Sound.Emitter

public interface EnderDragon extends ComplexLivingEntity, Boss, Mob, Enemy
Represents an Ender Dragon
  • Method Details

    • getPhase

      Gets the current phase that the dragon is performing.
      Returns:
      the current phase
    • setPhase

      void setPhase(@NotNull @NotNull EnderDragon.Phase phase)
      Sets the next phase for the dragon to perform.
      Parameters:
      phase - the next phase
    • getDragonBattle

      @Nullable @Nullable DragonBattle getDragonBattle()
      Get the DragonBattle associated with this EnderDragon. This will return null if the EnderDragon is not in the End dimension.
      Returns:
      the dragon battle
      See Also:
    • getDeathAnimationTicks

      int getDeathAnimationTicks()
      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).
      Returns:
      this dragon's death animation ticks
    • getPodium

      @NotNull Location getPodium()
      Get the podium location used by the ender dragon.
      Returns:
      the podium location of the dragon
    • setPodium

      void setPodium(@Nullable Location location)
      Sets the location of the podium for the ender dragon.
      Parameters:
      location - the location of the podium or null to use the default podium location (exit portal of the end)