pocketmine\entity\ai\goal
Classes
| Name | Kind | Summary |
|---|---|---|
| AvoidEntityGoal 5.46.0 | class | Runs away from nearby entities accepted by the filter (vanilla behavior |
| BreedGoal 5.46.0 | class | Walks to another animal of the same kind in love and makes a baby with it (vanilla behavior |
| DropGiftForOwnerGoal 5.46.0 | class | Morning gift of a cat which slept with its owner (vanilla behavior |
| EatGrassGoal 5.46.0 | class | Sheep eat the grass they stand on (vanilla behavior |
| FindMountGoal 5.46.0 | class | A mob looks for something to ride within a radius, walks to it and gets on (vanilla behavior |
| FloatGoal 5.46.0 | class | Keeps the mob afloat in water by swimming up (vanilla behavior |
| FollowOwnerGoal 5.46.0 | class | Follows the owner (or another leader given by the callback) when it gets farther than $startDistance, stopping at $stopDistance, and telepor |
| FollowParentGoal 5.46.0 | class | Babies follow the nearest adult of their kind (vanilla behavior |
| FrogEatMobGoal 5.46.0 | class | A frog eats its target (vanilla behavior |
| Goal 5.46.0 | class | A behaviour of a mob (wander, panic, attack |
| GoalSelector 5.46.0 | class | Runs a set of prioritised goals (lower number = more important), giving each control flag (move, look, jump, target) to at most one running |
| HurtByTargetGoal 5.46.0 | class | Targets whoever hurt the mob (vanilla behavior |
| InvestigateLocationGoal 5.46.0 | class | Walks to a suspicious location (vanilla behavior |
| LayEggGoal 5.46.0 | class | A pregnant animal walks to a suitable block and lays its eggs there (vanilla behavior |
| LeapAtTargetGoal 5.46.0 | class | Pounces at the target when it's a few blocks away (vanilla behavior |
| LongJumpGoal 5.46.0 | class | Jumps up onto a high block (vanilla behavior |
| LookAtPlayerGoal 5.46.0 | class | Looks at a nearby player for a few seconds (vanilla behavior |
| MeleeAttackGoal 5.46.0 | class | Chases the attack target and hits it when in reach (vanilla behavior |
| MountPathingGoal 5.46.0 | class | A ridden mob walks towards the attack target of its rider (vanilla behavior |
| NearestAttackableEntityGoal 5.46.0 | class | Targets the nearest living entity in range accepted by the filter (vanilla behavior |
| NearestAttackableTargetGoal 5.46.0 | class | Targets the nearest survival/adventure player in range (vanilla behavior |
| OwnerHurtByTargetGoal 5.46.0 | class | A tamed animal attacks whoever hurt its owner (vanilla behavior |
| PanicGoal 5.46.0 | class | Runs away at a higher speed after being hurt or while burning (vanilla behavior |
| PetSleepWithOwnerGoal 5.46.0 | class | A tamed cat goes to sleep on the bed its owner is sleeping in (vanilla behavior |
| RandomLookAroundGoal 5.46.0 | class | Looks in a random direction for a moment while idle (vanilla behavior |
| RandomStrollGoal 5.46.0 | class | Walks to a random spot nearby from time to time (vanilla behavior |
| RangedAttackGoal 5.46.0 | class | Keeps the target at range, strafing around it, and shoots it at a fixed interval (vanilla behavior |
| SitOnBlockGoal 5.46.0 | class | Tamed cats like to sit on chests, lit furnaces and the foot of beds (vanilla behavior |
| SitWhenOrderedGoal 5.46.0 | class | A tamed animal ordered to sit stays where it is (vanilla behavior |
| SwellGoal 5.46.0 | class | Creepers start their fuse when their target comes within 2 |
| TemptGoal 5.46.0 | class | Follows a player holding a food item the mob likes (vanilla behavior |
