Package io.lumine.mythic.core.mobs.ai
Class Pathfinder
java.lang.Object
io.lumine.mythic.core.mobs.ai.Pathfinder
- All Implemented Interfaces:
PathfinderAdapter
- Direct Known Subclasses:
DoNothingGoal
,FollowPathGoal
,GoToLocationGoal
,GoToOwnerGoal
,GoToParentGoal
,GoToSpawnLocationGoal
,PatrolGoal
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected ActiveMob
protected String
protected String
protected AbstractEntity
protected Pathfinder.GoalType
-
Constructor Summary
ConstructorDescriptionPathfinder
(AbstractEntity entity, int index, String line, MythicLineConfig mlc) Pathfinder
(AbstractEntity entity, String line, MythicLineConfig mlc) -
Method Summary
Modifier and TypeMethodDescriptionprotected static VolatileAIHandler
ai()
abstract void
end()
Ends thisPathfinder
.protected static MythicBukkit
boolean
isValid()
Whether or not the supplied entity is valid for this pathfinderabstract boolean
Whether or not thisPathfinder
should end.abstract boolean
Whether or not thisPathfinder
should start.abstract void
start()
Starts thisPathfinder
.abstract void
tick()
Called every tick when thisPathfinder
is running.
-
Field Details
-
activeMob
-
entity
-
dataVar1
-
dataVar2
-
goalType
-
-
Constructor Details
-
Pathfinder
-
Pathfinder
-
-
Method Details
-
getPlugin
-
ai
-
isValid
public boolean isValid()Whether or not the supplied entity is valid for this pathfinder- Specified by:
isValid
in interfacePathfinderAdapter
-
shouldStart
public abstract boolean shouldStart()Whether or not thisPathfinder
should start.- Returns:
- True if it should, false if not.
-
start
public abstract void start()Starts thisPathfinder
. -
tick
public abstract void tick()Called every tick when thisPathfinder
is running. -
shouldEnd
public abstract boolean shouldEnd()Whether or not thisPathfinder
should end.- Returns:
- True if it should end, false if not.
-
end
public abstract void end()Ends thisPathfinder
.
-