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

public abstract class Pathfinder extends Object implements PathfinderAdapter
  • Field Details

  • Constructor Details

  • Method Details

    • getPlugin

      protected static MythicBukkit getPlugin()
    • ai

      protected static VolatileAIHandler ai()
    • isValid

      public boolean isValid()
      Whether or not the supplied entity is valid for this pathfinder
      Specified by:
      isValid in interface PathfinderAdapter
    • shouldStart

      public abstract boolean shouldStart()
      Whether or not this Pathfinder should start.
      Returns:
      True if it should, false if not.
    • start

      public abstract void start()
      Starts this Pathfinder.
    • tick

      public abstract void tick()
      Called every tick when this Pathfinder is running.
    • shouldEnd

      public abstract boolean shouldEnd()
      Whether or not this Pathfinder should end.
      Returns:
      True if it should end, false if not.
    • end

      public abstract void end()
      Ends this Pathfinder.