Interface DragonBrain

All Superinterfaces:
EntityBrain

public interface DragonBrain extends EntityBrain
Represents a special EntityBrain for Ender Dragons.
  • Method Details

    • setCustomPhase

      void setCustomPhase(@NotNull @NotNull CustomPhase phase) throws IllegalArgumentException
      Sets the current custom phase of the Ender Dragon.
      Parameters:
      phase - Custom Phase to use.
      Throws:
      IllegalArgumentException - if phase is null
    • getNearestCrystal

      @Nullable @Nullable EnderCrystal getNearestCrystal()
      Fetches the nearest ender crystal that is currently healing this Ender Dragon.
      Returns:
      EnderCrystal healing this EnderDragon, may be null
    • getCurrentPhase

      @NotNull @NotNull DragonPhase getCurrentPhase()
      Fetches the current DragonPhase of the Ender Dragon.
      Returns:
      Current DragonPhase of the Ender Dragon.