Package me.gamercoder215.mobchip
Interface DragonBrain
- All Superinterfaces:
EntityBrain
Represents a special EntityBrain for Ender Dragons.
-
Method Summary
Modifier and TypeMethodDescriptionFetches the current DragonPhase of the Ender Dragon.Fetches the nearest ender crystal that is currently healing this Ender Dragon.void
setCustomPhase
(@NotNull CustomPhase phase) Sets the current custom phase of the Ender Dragon.Methods inherited from interface me.gamercoder215.mobchip.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.
-