Interface EnderDragon

    • Method Detail

      • getPhase

        @NotNull
        EnderDragon.Phase getPhase()
        Gets the current phase that the dragon is performing.
        Returns:
        the current phase
      • setPhase

        void setPhase​(@NotNull
                      EnderDragon.Phase phase)
        Sets the next phase for the dragon to perform.
        Parameters:
        phase - the next phase
      • 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