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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ActiveMobprotected Stringprotected Stringprotected AbstractEntityprotected Pathfinder.GoalType -
Constructor Summary
ConstructorsConstructorDescriptionPathfinder(AbstractEntity entity, int index, String line, MythicLineConfig mlc) Pathfinder(AbstractEntity entity, String line, MythicLineConfig mlc) -
Method Summary
Modifier and TypeMethodDescriptionprotected static VolatileAIHandlerai()abstract voidend()Ends thisPathfinder.protected static MythicBukkitbooleanisValid()Whether or not the supplied entity is valid for this pathfinderabstract booleanWhether or not thisPathfindershould end.abstract booleanWhether or not thisPathfindershould start.abstract voidstart()Starts thisPathfinder.abstract voidtick()Called every tick when thisPathfinderis 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:
isValidin interfacePathfinderAdapter
-
shouldStart
public abstract boolean shouldStart()Whether or not thisPathfindershould 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 thisPathfinderis running. -
shouldEnd
public abstract boolean shouldEnd()Whether or not thisPathfindershould end.- Returns:
- True if it should end, false if not.
-
end
public abstract void end()Ends thisPathfinder.
-