Interface DragonBrain
- All Superinterfaces:
EntityBrain
Represents a special EntityBrain for Ender Dragons.
-
Method Summary
Modifier and TypeMethodDescription@NotNull DragonPhaseFetches the current DragonPhase of the Ender Dragon.@Nullable EnderCrystalFetches the nearest ender crystal that is currently healing this Ender Dragon.voidsetCustomPhase(@NotNull CustomPhase phase) Sets the current custom phase of the Ender Dragon.Methods inherited from interface EntityBrain
canSee, canSee, clearRestrictionArea, containsAllMemories, containsMemory, createNavigation, getAttributeInstance, getBehaviors, getBody, getCombatTracker, getController, getEntity, getExpiration, getGoalAI, getMemory, getMemoryStatus, getRestrictionArea, getRestrictionRadius, getScheduleManager, getSenses, getTargetAI, hasRestriction, isInRestriction, removeMemory, setMemories, setMemories, setMemory, setMemory, setRestrictionArea
-
Method Details
-
setCustomPhase
Sets the current custom phase of the Ender Dragon.- Parameters:
phase- Custom Phase to use.- Throws:
IllegalArgumentException- if phase is null
-
getNearestCrystal
Fetches the nearest ender crystal that is currently healing this Ender Dragon.- Returns:
- EnderCrystal healing this EnderDragon, may be null
-
getCurrentPhase
Fetches the current DragonPhase of the Ender Dragon.- Returns:
- Current DragonPhase of the Ender Dragon.
-