Class Pathfinder

java.lang.Object
me.gamercoder215.mobchip.ai.goal.Pathfinder
All Implemented Interfaces:
PathfinderInfo
Direct Known Subclasses:
CustomPathfinder, PathfinderAvoidEntity, PathfinderBeg, PathfinderBreakDoor, PathfinderBreathAir, PathfinderBreed, PathfinderCatOnBed, PathfinderCatOnBlock, PathfinderClimbPowderedSnow, PathfinderDolphinJump, PathfinderEatTile, PathfinderFindWater, PathfinderFleeSun, PathfinderFloat, PathfinderFollowBoat, PathfinderFollowFishLeader, PathfinderFollowMob, PathfinderFollowOwner, PathfinderFollowParent, PathfinderLeapAtTarget, PathfinderLlamaFollowCaravan, PathfinderLookAtEntity, PathfinderLookAtTradingPlayer, PathfinderMeleeAttack, PathfinderMoveThroughVillage, PathfinderMoveToBlock, PathfinderMoveToRaid, PathfinderMoveTowardsRestriction, PathfinderMoveTowardsTarget, PathfinderOcelotAttack, PathfinderOfferFlower, PathfinderOpenDoor, PathfinderPanic, PathfinderRandomLook, PathfinderRandomStand, PathfinderRandomStroll, PathfinderRandomStrollThroughVillage, PathfinderRangedAttack, PathfinderRangedBowAttack, PathfinderRangedCrossbowAttack, PathfinderRemoveBlock, PathfinderResetAnger, PathfinderRestrictSun, PathfinderRideShoulder, PathfinderSit, PathfinderSkeletonTrap, PathfinderSwellCreeper, PathfinderTameHorse, PathfinderTempt, PathfinderTradePlayer, PathfinderUseItem, TargetPathfinder

public abstract class Pathfinder extends Object implements PathfinderInfo

Represents a Pathfinder Goal of an Entity.

For custom pathfinders, extend CustomPathfinder.
  • Field Details

    • entity

      protected final Mob entity
      This Entity.
  • Constructor Details

  • Method Details

    • getEntity

      @NotNull public @NotNull Mob getEntity()
      Get the entity involved in this Pathfinder.
      Returns:
      Creature involved
    • getFlags

      @NotNull public abstract @NotNull Pathfinder.PathfinderFlag[] getFlags()

      Fetches an Array of Flags that this Pathfinder has.

      Returns:
      Array of Pathfinder Flags
      API Note:
      On Paper Implementations, this enum is converted into a byte for optimization. MobChip does not plan to add functionality for Paper to make this array mutable on those implementations.