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, PathfinderFollowFishLeader, PathfinderFollowMob, PathfinderFollowOwner, PathfinderFollowParent, PathfinderFollowPlayerRiddenEntity, 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, PathfinderSpearUse, PathfinderSwellCreeper, PathfinderTameHorse, PathfinderTempt, PathfinderTradePlayer, PathfinderUseItem, TargetPathfinder
Represents a Pathfinder Goal of an Entity.
For custom pathfinders, extendCustomPathfinder.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPathfinder Flags for a Pathfinder -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull MobGet the entity involved in this Pathfinder.abstract @NotNull Pathfinder.PathfinderFlag[]getFlags()Fetches an Array of Flags that this Pathfinder has.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PathfinderInfo
getInternalName, getName
-
Field Details
-
entity
This Entity.
-
-
Constructor Details
-
Pathfinder
Constructs a Pathfinder.- Parameters:
entity- Entity to use- Throws:
IllegalArgumentException- if entity is null
-
-
Method Details
-
getEntity
Get the entity involved in this Pathfinder.- Returns:
- Creature involved
-
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.
-