Uses of Class
net.minecraft.entity.mob.PathAwareEntity
Package
Description
The basic AI system for Minecraft living entities.
-
Uses of PathAwareEntity in net.minecraft.entity.ai
Modifier and TypeMethodDescriptionstatic @Nullable Vec3d
AboveGroundTargeting.find
(PathAwareEntity entity, int horizontalRange, int verticalRange, double x, double z, float angle, int maxAboveSolid, int minAboveSolid) static @Nullable Vec3d
FuzzyTargeting.find
(PathAwareEntity entity, int horizontalRange, int verticalRange) Paths to a random reachable position with positive path-finding favorability.static @Nullable Vec3d
FuzzyTargeting.find
(PathAwareEntity entity, int horizontalRange, int verticalRange, ToDoubleFunction<BlockPos> scorer) Paths to a random reachable position with positive path-finding favorability computed by a given function.static @Nullable Vec3d
NoPenaltySolidTargeting.find
(PathAwareEntity entity, int horizontalRange, int verticalRange, int startHeight, double directionX, double directionZ, double rangeAngle) static @Nullable Vec3d
NoPenaltyTargeting.find
(PathAwareEntity entity, int horizontalRange, int verticalRange) Paths to a random reachable position with no penalty.static @Nullable Vec3d
NoWaterTargeting.find
(PathAwareEntity entity, int horizontalRange, int verticalRange, int startHeight, Vec3d direction, double angleRange) static @Nullable Vec3d
FuzzyTargeting.findFrom
(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d start) Paths to a random reachable position leading away from a given starting point.static @Nullable Vec3d
NoPenaltyTargeting.findFrom
(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d start) Paths to a position leading away from a given starting point.static @Nullable Vec3d
FuzzyTargeting.findTo
(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d end) Paths to a random reachable position leading towards a given end-point.static @Nullable Vec3d
NoPenaltyTargeting.findTo
(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d end, double angleRange) Paths to a position leading towards a given end-point.private static @Nullable Vec3d
FuzzyTargeting.findValid
(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d direction, boolean posTargetInRange) static @Nullable Vec3d
FuzzyPositions.guessBestPathTarget
(PathAwareEntity entity, Supplier<BlockPos> factory) CallsFuzzyPositions.guessBest(Supplier, ToDoubleFunction)
with theentity
's path finding favor as thescorer
.static boolean
NavigationConditions.hasPathfindingPenalty
(PathAwareEntity entity, BlockPos pos) static boolean
NavigationConditions.isHeightInvalid
(BlockPos pos, PathAwareEntity entity) static boolean
NavigationConditions.isPositionTargetInRange
(PathAwareEntity entity, int extraDistance) static boolean
NavigationConditions.isPositionTargetOutOfWalkRange
(boolean posTargetInRange, PathAwareEntity entity, BlockPos pos) static boolean
NavigationConditions.isSolidAt
(PathAwareEntity entity, BlockPos pos) static boolean
NavigationConditions.isWaterAt
(PathAwareEntity entity, BlockPos pos) static BlockPos
FuzzyPositions.towardTarget
(PathAwareEntity entity, int horizontalRange, Random random, BlockPos fuzz) static @Nullable BlockPos
FuzzyTargeting.towardTarget
(PathAwareEntity entity, int horizontalRange, boolean posTargetInRange, BlockPos relativeInRangePos) Paths to a random reachable position approaching an entity's chosenposition target
.static @Nullable BlockPos
NoPenaltySolidTargeting.tryMake
(PathAwareEntity entity, int horizontalRange, int verticalRange, int startHeight, double directionX, double directionZ, double rangeAngle, boolean posTargetInRange) private static @Nullable BlockPos
NoPenaltyTargeting.tryMake
(PathAwareEntity entity, int horizontalRange, boolean posTargetInRange, BlockPos fuzz) static @Nullable BlockPos
FuzzyTargeting.validate
(PathAwareEntity entity, BlockPos pos) Checks whether a given position is a valid pathable target. -
Uses of PathAwareEntity in net.minecraft.entity.ai.brain.sensor
Modifier and TypeMethodDescriptionprotected void
TemptationsSensor.sense
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity) -
Uses of PathAwareEntity in net.minecraft.entity.ai.brain.task
Modifier and TypeClassDescriptionclass
PrepareRamTask<E extends PathAwareEntity>
The task where an entity finds a target, a place to start its ram, and wait to start its ram.Modifier and TypeFieldDescriptionprivate static final Predicate<PathAwareEntity>
FleeTask.PANIC_PREDICATE
private final Predicate<PathAwareEntity>
FleeTask.predicate
Modifier and TypeMethodDescriptionstatic Task<PathAwareEntity>
FindPointOfInterestTask.create
(Predicate<RegistryEntry<PointOfInterestType>> poiPredicate, MemoryModuleType<GlobalPos> poiPosModule, boolean onlyRunIfChild, Optional<Byte> entityStatus) static Task<PathAwareEntity>
FindPointOfInterestTask.create
(Predicate<RegistryEntry<PointOfInterestType>> poiPredicate, MemoryModuleType<GlobalPos> poiPosModule, MemoryModuleType<GlobalPos> potentialPoiPosModule, boolean onlyRunIfChild, Optional<Byte> entityStatus) static SingleTickTask<PathAwareEntity>
FindWalkTargetTask.create
(float walkSpeed) static SingleTickTask<PathAwareEntity>
FindWalkTargetTask.create
(float walkSpeed, int horizontalRange, int verticalRange) static SingleTickTask<PathAwareEntity>
GoToIfNearbyTask.create
(MemoryModuleType<GlobalPos> posModule, float walkSpeed, int maxDistance) static Task<PathAwareEntity>
GoToNearbyPositionTask.create
(MemoryModuleType<GlobalPos> posModule, float walkSpeed, int completionRange, int maxDistance) private static <T> SingleTickTask<PathAwareEntity>
GoToRememberedPositionTask.create
(MemoryModuleType<T> posSource, float speed, int range, boolean requiresWalkTarget, Function<T, Vec3d> posGetter) static Task<PathAwareEntity>
PlayWithVillagerBabiesTask.create()
static Task<PathAwareEntity>
SeekWaterTask.create
(int range, float speed) static SingleTickTask<PathAwareEntity>
StrollTask.create
(float speed) static SingleTickTask<PathAwareEntity>
StrollTask.create
(float speed, boolean strollInsideWater) static Task<PathAwareEntity>
StrollTask.create
(float speed, int horizontalRadius, int verticalRadius) private static SingleTickTask<PathAwareEntity>
StrollTask.create
(float speed, Function<PathAwareEntity, Vec3d> targetGetter, Predicate<PathAwareEntity> shouldRun) static Task<PathAwareEntity>
WalkHomeTask.create
(float speed) static Task<PathAwareEntity>
WalkTowardsLandTask.create
(int range, float speed) static Task<PathAwareEntity>
WalkTowardsWaterTask.create
(int range, float speed) static Task<PathAwareEntity>
WanderIndoorsTask.create
(float speed) static Task<PathAwareEntity>
StrollTask.createDynamicRadius
(float speed) static SingleTickTask<PathAwareEntity>
GoToRememberedPositionTask.createEntityBased
(MemoryModuleType<? extends Entity> entityModule, float speed, int range, boolean requiresWalkTarget) static Task<PathAwareEntity>
GoToRememberedPositionTask.createPosBased
(MemoryModuleType<BlockPos> posModule, float speed, int range, boolean requiresWalkTarget) static Task<PathAwareEntity>
StrollTask.createSolidTargeting
(float speed) Modifier and TypeMethodDescriptionprivate boolean
PrepareRamTask.canReach
(PathAwareEntity entity, BlockPos target) private static boolean
TakeJobSiteTask.canReachJobSite
(PathAwareEntity entity, BlockPos pos, PointOfInterestType poiType) static @Nullable Vec3d
LookTargetUtil.find
(PathAwareEntity entity, int horizontalRange, int verticalRange) private void
PrepareRamTask.findRam
(PathAwareEntity entity, LivingEntity target) PrepareRamTask.findRamStart
(PathAwareEntity entity, LivingEntity target) private @Nullable Vec3d
FleeTask.findTarget
(PathAwareEntity entity, ServerWorld world) private static @Nullable Vec3d
StrollTask.findTargetPos
(PathAwareEntity entity) private static @Nullable Vec3d
StrollTask.findTargetPos
(PathAwareEntity entity, int horizontalRadius, int verticalRadius) protected void
FleeTask.finishRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
TemptTask.finishRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected float
TemptTask.getSpeed
(PathAwareEntity entity) private Optional<PlayerEntity>
TemptTask.getTemptingPlayer
(PathAwareEntity entity) protected void
FleeTask.keepRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
TemptTask.keepRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
FleeTask.run
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
PrepareRamTask.run
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
TemptTask.run
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected boolean
FleeTask.shouldKeepRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected boolean
PrepareRamTask.shouldKeepRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected boolean
TemptTask.shouldKeepRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected boolean
FleeTask.shouldRun
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity) Modifier and TypeMethodDescriptionprivate static SingleTickTask<PathAwareEntity>
StrollTask.create
(float speed, Function<PathAwareEntity, Vec3d> targetGetter, Predicate<PathAwareEntity> shouldRun) private static SingleTickTask<PathAwareEntity>
StrollTask.create
(float speed, Function<PathAwareEntity, Vec3d> targetGetter, Predicate<PathAwareEntity> shouldRun) -
Uses of PathAwareEntity in net.minecraft.entity.ai.goal
Modifier and TypeFieldDescriptionprivate final PathAwareEntity
AvoidSunlightGoal.mob
private final PathAwareEntity
BreatheAirGoal.mob
private final PathAwareEntity
ChaseBoatGoal.mob
protected final PathAwareEntity
EscapeDangerGoal.mob
protected final PathAwareEntity
EscapeSunlightGoal.mob
protected final PathAwareEntity
FleeEntityGoal.mob
private final PathAwareEntity
GoToVillageGoal.mob
private final PathAwareEntity
GoToWalkTargetGoal.mob
protected final PathAwareEntity
MeleeAttackGoal.mob
private final PathAwareEntity
MoveIntoWaterGoal.mob
protected final PathAwareEntity
MoveThroughVillageGoal.mob
protected final PathAwareEntity
MoveToTargetPosGoal.mob
protected final PathAwareEntity
TemptGoal.mob
protected final PathAwareEntity
WanderAroundGoal.mob
private final PathAwareEntity
WanderNearTargetGoal.mob
Modifier and TypeMethodDescriptionprotected int
GoToBedAndSleepGoal.getInterval
(PathAwareEntity mob) protected int
MoveToTargetPosGoal.getInterval
(PathAwareEntity mob) ModifierConstructorDescriptionEscapeDangerGoal
(PathAwareEntity mob, double speed) EscapeSunlightGoal
(PathAwareEntity mob, double speed) FleeEntityGoal
(PathAwareEntity mob, Class<T> fleeFromType, float distance, double slowSpeed, double fastSpeed) FleeEntityGoal
(PathAwareEntity fleeingEntity, Class<T> classToFleeFrom, float fleeDistance, double fleeSlowSpeed, double fleeFastSpeed, Predicate<LivingEntity> inclusionSelector) FleeEntityGoal
(PathAwareEntity mob, Class<T> fleeFromType, Predicate<LivingEntity> extraInclusionSelector, float distance, double slowSpeed, double fastSpeed, Predicate<LivingEntity> inclusionSelector) FlyGoal
(PathAwareEntity mob, double speed) GoToVillageGoal
(PathAwareEntity mob, int searchRange) GoToWalkTargetGoal
(PathAwareEntity mob, double speed) IronGolemWanderAroundGoal
(PathAwareEntity mob, double speed) MeleeAttackGoal
(PathAwareEntity mob, double speed, boolean pauseWhenMobIdle) MoveThroughVillageGoal
(PathAwareEntity entity, double speed, boolean requiresNighttime, int distance, BooleanSupplier doorPassingThroughGetter) MoveToTargetPosGoal
(PathAwareEntity mob, double speed, int range) MoveToTargetPosGoal
(PathAwareEntity mob, double speed, int range, int maxYDifference) RevengeGoal
(PathAwareEntity mob, Class<?>[] noRevengeTypes) StepAndDestroyBlockGoal
(Block targetBlock, PathAwareEntity mob, double speed, int maxYDifference) SwimAroundGoal
(PathAwareEntity mob, double speed, int chance) TemptGoal
(PathAwareEntity entity, double speed, Ingredient food, boolean canBeScared) WanderAroundFarGoal
(PathAwareEntity mob, double speed) WanderAroundFarGoal
(PathAwareEntity mob, double speed, float probability) WanderAroundGoal
(PathAwareEntity mob, double speed) WanderAroundGoal
(PathAwareEntity mob, double speed, int chance) WanderAroundGoal
(PathAwareEntity entity, double speed, int chance, boolean canDespawn) WanderAroundPointOfInterestGoal
(PathAwareEntity entity, double speed, boolean canDespawn) WanderNearTargetGoal
(PathAwareEntity mob, double speed, float maxDistance) -
Uses of PathAwareEntity in net.minecraft.entity.boss
-
Uses of PathAwareEntity in net.minecraft.entity.mob
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Modifier and TypeFieldDescriptionprivate final PathAwareEntity
DrownedEntity.WanderAroundOnSurfaceGoal.mob
Modifier and TypeMethodDescriptionprivate static Task<PathAwareEntity>
PiglinBrain.makeGoToSoulFireTask()
ModifierConstructorDescription(package private)
DestroyEggGoal
(PathAwareEntity mob, double speed, int maxYDifference) WanderAroundOnSurfaceGoal
(PathAwareEntity mob, double speed) ModifierConstructorDescriptionprotected
PathAwareEntity
(EntityType<? extends PathAwareEntity> type, World world) -
Uses of PathAwareEntity in net.minecraft.entity.passive
Modifier and TypeClassDescriptionclass
class
class
class
class
Represents an axolotl, the cutest predator.class
class
class
Meow.class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Modifier and TypeMethodDescriptionprotected void
CamelBrain.CamelWalkTask.run
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) ModifierConstructorDescriptionFlyOntoTreeGoal
(PathAwareEntity mob, double speed) (package private)
StingGoal
(PathAwareEntity mob, double speed, boolean pauseWhenMobIdle) -
Uses of PathAwareEntity in net.minecraft.entity.raid