Package me.gamercoder215.mobchip.ai.goal
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
Represents a Pathfinder Goal of an Entity.
For custom pathfinders, extendCustomPathfinder
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Pathfinder Flags for a Pathfinder -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface me.gamercoder215.mobchip.ai.goal.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.
-