Uses of Class
net.minecraft.entity.mob.PathAwareEntity
Packages that use PathAwareEntity
Package
Description
The basic AI system for Minecraft living entities.
-
Uses of PathAwareEntity in net.minecraft.entity.ai
Methods in net.minecraft.entity.ai with parameters of type PathAwareEntityModifier and TypeMethodDescriptionAboveGroundTargeting.find(PathAwareEntity entity, int horizontalRange, int verticalRange, double x, double z, float angle, int maxAboveSolid, int minAboveSolid) FuzzyTargeting.find(PathAwareEntity entity, int horizontalRange, int verticalRange) Paths to a random reachable position with positive path-finding favorability.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.NoPenaltySolidTargeting.find(PathAwareEntity entity, int horizontalRange, int verticalRange, int startHeight, double directionX, double directionZ, double rangeAngle) NoPenaltyTargeting.find(PathAwareEntity entity, int horizontalRange, int verticalRange) Paths to a random reachable position with no penalty.NoWaterTargeting.find(PathAwareEntity entity, int horizontalRange, int verticalRange, int startHeight, Vec3d direction, double angleRange) FuzzyTargeting.findFrom(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d start) Paths to a random reachable position leading away from a given starting point.NoPenaltyTargeting.findFrom(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d start) Paths to a position leading away from a given starting point.FuzzyTargeting.findTo(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d end) Paths to a random reachable position leading towards a given end-point.NoPenaltyTargeting.findTo(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d end, double angleRange) Paths to a position leading towards a given end-point.FuzzyTargeting.findValid(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d direction, boolean posTargetInRange) FuzzyPositions.guessBestPathTarget(PathAwareEntity entity, Supplier<BlockPos> factory) CallsFuzzyPositions.guessBest(Supplier, ToDoubleFunction)with theentity's path finding favor as thescorer.static booleanNavigationConditions.hasPathfindingPenalty(PathAwareEntity entity, BlockPos pos) static booleanNavigationConditions.isHeightInvalid(BlockPos pos, PathAwareEntity entity) static booleanNavigationConditions.isPositionTargetInRange(PathAwareEntity entity, int extraDistance) static booleanNavigationConditions.isPositionTargetOutOfWalkRange(boolean posTargetInRange, PathAwareEntity entity, BlockPos pos) static booleanNavigationConditions.isSolidAt(PathAwareEntity entity, BlockPos pos) static booleanNavigationConditions.isWaterAt(PathAwareEntity entity, BlockPos pos) static BlockPosFuzzyPositions.towardTarget(PathAwareEntity entity, int horizontalRange, Random random, BlockPos fuzz) FuzzyTargeting.towardTarget(PathAwareEntity entity, int horizontalRange, boolean posTargetInRange, BlockPos relativeInRangePos) Paths to a random reachable position approaching an entity's chosenposition target.NoPenaltySolidTargeting.tryMake(PathAwareEntity entity, int horizontalRange, int verticalRange, int startHeight, double directionX, double directionZ, double rangeAngle, boolean posTargetInRange) NoPenaltyTargeting.tryMake(PathAwareEntity entity, int horizontalRange, boolean posTargetInRange, BlockPos fuzz) 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
Methods in net.minecraft.entity.ai.brain.sensor with parameters of type PathAwareEntityModifier and TypeMethodDescriptionprotected voidTemptationsSensor.sense(ServerWorld serverWorld, PathAwareEntity pathAwareEntity) -
Uses of PathAwareEntity in net.minecraft.entity.ai.brain.task
Classes in net.minecraft.entity.ai.brain.task with type parameters of type PathAwareEntityModifier and TypeClassDescriptionclassFleeTask<E extends PathAwareEntity>classPrepareRamTask<E extends PathAwareEntity>The task where an entity finds a target, a place to start its ram, and wait to start its ram.Fields in net.minecraft.entity.ai.brain.task with type parameters of type PathAwareEntityModifier and TypeFieldDescriptionprivate final Function<PathAwareEntity, TagKey<DamageType>> FleeTask.entityToDangerousDamageTypesprivate final Consumer<PathAwareEntity> MoveItemsTask.travellingCallbackMethods in net.minecraft.entity.ai.brain.task that return types with arguments of type PathAwareEntityModifier 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, boolean onlyRunIfChild, Optional<Byte> entityStatus, BiPredicate<ServerWorld, BlockPos> worldPosBiPredicate) static Task<PathAwareEntity> FindPointOfInterestTask.create(Predicate<RegistryEntry<PointOfInterestType>> poiPredicate, MemoryModuleType<GlobalPos> poiPosModule, MemoryModuleType<GlobalPos> potentialPoiPosModule, boolean onlyRunIfChild, Optional<Byte> entityStatus, BiPredicate<ServerWorld, BlockPos> worldPosBiPredicate) static SingleTickTask<PathAwareEntity> GoAroundTask.create(MemoryModuleType<GlobalPos> posModule, float walkSpeed, int maxDistance) static Task<PathAwareEntity> GoIndoorsTask.create(float speed) static Task<PathAwareEntity> GoToHomeTask.create(float speed) static SingleTickTask<PathAwareEntity> GoToPointOfInterestTask.create(float walkSpeed) static SingleTickTask<PathAwareEntity> GoToPointOfInterestTask.create(float walkSpeed, int horizontalRange, int verticalRange) static Task<PathAwareEntity> GoToPosTask.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> WalkTowardsLandTask.create(int range, float speed) static Task<PathAwareEntity> WalkTowardsWaterTask.create(int range, 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) private BiConsumer<PathAwareEntity, Inventory> MoveItemsTask.createSetInteractionStateCallback(MoveItemsTask.InteractionState state) static Task<PathAwareEntity> StrollTask.createSolidTargeting(float speed) Methods in net.minecraft.entity.ai.brain.task with parameters of type PathAwareEntityModifier and TypeMethodDescriptionprivate Vec3dMoveItemsTask.atCenterY(PathAwareEntity entity) private Vec3dMoveItemsTask.atCenterY(PathAwareEntity entity, Vec3d pos) private static booleanMoveItemsTask.canInsert(PathAwareEntity entity, Inventory inventory) private booleanMoveItemsTask.canNavigateTo(World world, MoveItemsTask.Storage storage, PathAwareEntity entity) private static booleanMoveItemsTask.canPickUpItem(PathAwareEntity entity) private booleanPrepareRamTask.canReach(PathAwareEntity entity, BlockPos target) private static booleanTakeJobSiteTask.canReachJobSite(PathAwareEntity entity, BlockPos pos, PointOfInterestType poiType) private voidMoveItemsTask.cooldown(PathAwareEntity entity) TargetUtil.find(PathAwareEntity entity, int horizontalRange, int verticalRange) private voidPrepareRamTask.findRam(PathAwareEntity entity, LivingEntity target) PrepareRamTask.findRamStart(PathAwareEntity entity, LivingEntity target) private Optional<MoveItemsTask.Storage> MoveItemsTask.findStorage(ServerWorld world, PathAwareEntity entity) StrollTask.findTargetPos(PathAwareEntity entity) StrollTask.findTargetPos(PathAwareEntity entity, int horizontalRadius, int verticalRadius) protected voidMoveItemsTask.finishRunning(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected voidTemptTask.finishRunning(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) private intMoveItemsTask.getHorizontalRange(PathAwareEntity entity) private BoxMoveItemsTask.getSearchBoundingBox(PathAwareEntity entity) private static doubleMoveItemsTask.getSightRange(PathAwareEntity entity) protected floatTemptTask.getSpeed(PathAwareEntity entity) private @Nullable MoveItemsTask.StorageMoveItemsTask.getStorageFor(PathAwareEntity entity, World world, BlockEntity blockEntity, Set<GlobalPos> visitedPositions, Set<GlobalPos> unreachablePositions, Box box) private Vec3dMoveItemsTask.getTargetPos(@Nullable Path path, PathAwareEntity entity) private Optional<PlayerEntity> TemptTask.getTemptingPlayer(PathAwareEntity entity) MoveItemsTask.getUnreachablePositions(PathAwareEntity entity) private intMoveItemsTask.getVerticalRange(PathAwareEntity entity) MoveItemsTask.getVisitedPositions(PathAwareEntity entity) private static booleanMoveItemsTask.hasExistingStack(PathAwareEntity entity, Inventory inventory) private static booleanMoveItemsTask.hasFinishedNavigation(PathAwareEntity entity) private booleanMoveItemsTask.hasValidTargetStorage(World world, PathAwareEntity entity) private static ItemStackMoveItemsTask.insertStack(PathAwareEntity entity, Inventory inventory) Returns theItemStackthat should remain in the entity's inventory after the operation.protected voidMoveItemsTask.invalidateTargetStorage(PathAwareEntity entity) private booleanMoveItemsTask.isVisible(MoveItemsTask.Storage storage, World world, PathAwareEntity entity, Vec3d pos) private booleanMoveItemsTask.isVisible(World world, boolean nextToStorage, Vec3d pos, MoveItemsTask.Storage storage, PathAwareEntity entity) private booleanMoveItemsTask.isWithinRange(double range, MoveItemsTask.Storage storage, World world, PathAwareEntity entity, Vec3d pos) protected voidMoveItemsTask.keepRunning(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected voidTemptTask.keepRunning(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected voidMoveItemsTask.markUnreachable(PathAwareEntity entity, World world, BlockPos blockPos) protected voidMoveItemsTask.markVisited(PathAwareEntity entity, World world, BlockPos pos) private voidMoveItemsTask.onCannotUseStorage(PathAwareEntity entity) private voidMoveItemsTask.placeStack(PathAwareEntity entity, Inventory inventory) private voidMoveItemsTask.resetNavigation(PathAwareEntity entity) protected voidMoveItemsTask.resetVisitedPositions(PathAwareEntity entity) protected voidMoveItemsTask.run(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected voidPrepareRamTask.run(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected voidTemptTask.run(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) private voidMoveItemsTask.selectInteractionState(PathAwareEntity entity, Inventory inventory, BiConsumer<PathAwareEntity, Inventory> pickupItemCallback, BiConsumer<PathAwareEntity, Inventory> pickupNoItemCallback, BiConsumer<PathAwareEntity, Inventory> placeItemCallback, BiConsumer<PathAwareEntity, Inventory> placeNoItemCallback) private voidMoveItemsTask.setLookTarget(MoveItemsTask.Storage storage, PathAwareEntity entity) protected booleanMoveItemsTask.shouldKeepRunning(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected booleanPrepareRamTask.shouldKeepRunning(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected booleanTemptTask.shouldKeepRunning(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected booleanMoveItemsTask.shouldRun(ServerWorld serverWorld, PathAwareEntity pathAwareEntity) private voidMoveItemsTask.takeStack(PathAwareEntity entity, Inventory inventory) private booleanMoveItemsTask.testContainer(PathAwareEntity entity, BlockState state) private booleanMoveItemsTask.tick(ServerWorld world, PathAwareEntity entity) protected voidMoveItemsTask.tickInteracting(MoveItemsTask.Storage storage, World world, PathAwareEntity entity) private voidMoveItemsTask.tickQueuing(MoveItemsTask.Storage storage, World world, PathAwareEntity entity) protected voidMoveItemsTask.tickTravelling(MoveItemsTask.Storage storage, World world, PathAwareEntity entity) private voidMoveItemsTask.transitionToInteracting(MoveItemsTask.Storage storage, PathAwareEntity entity) private voidMoveItemsTask.transitionToQueuing(PathAwareEntity entity) private voidMoveItemsTask.transitionToTravelling(PathAwareEntity entity) private voidMoveItemsTask.walkTowardsTargetStorage(PathAwareEntity entity) Method parameters in net.minecraft.entity.ai.brain.task with type arguments of type PathAwareEntityModifier 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) private voidMoveItemsTask.selectInteractionState(PathAwareEntity entity, Inventory inventory, BiConsumer<PathAwareEntity, Inventory> pickupItemCallback, BiConsumer<PathAwareEntity, Inventory> pickupNoItemCallback, BiConsumer<PathAwareEntity, Inventory> placeItemCallback, BiConsumer<PathAwareEntity, Inventory> placeNoItemCallback) Constructor parameters in net.minecraft.entity.ai.brain.task with type arguments of type PathAwareEntityModifierConstructorDescriptionFleeTask(float speed, Function<PathAwareEntity, TagKey<DamageType>> entityToDangerousDamageTypes) FleeTask(float speed, Function<PathAwareEntity, TagKey<DamageType>> entityToDangerousDamageTypes, Function<E, Vec3d> pathFinder) MoveItemsTask(float speed, Predicate<BlockState> inputContainerPredicate, Predicate<BlockState> outputChestPredicate, int horizontalRange, int verticalRange, Map<MoveItemsTask.InteractionState, MoveItemsTask.InteractionCallback> interactionCallbacks, Consumer<PathAwareEntity> travellingCallback, Predicate<MoveItemsTask.Storage> storagePredicate) -
Uses of PathAwareEntity in net.minecraft.entity.ai.goal
Fields in net.minecraft.entity.ai.goal declared as PathAwareEntityModifier and TypeFieldDescriptionprivate final PathAwareEntityAvoidSunlightGoal.mobprivate final PathAwareEntityBreatheAirGoal.mobprivate final PathAwareEntityChaseBoatGoal.mobprotected final PathAwareEntityEscapeDangerGoal.mobprotected final PathAwareEntityEscapeSunlightGoal.mobprotected final PathAwareEntityFleeEntityGoal.mobprivate final PathAwareEntityGoToVillageGoal.mobprivate final PathAwareEntityGoToWalkTargetGoal.mobprotected final PathAwareEntityMeleeAttackGoal.mobprivate final PathAwareEntityMoveIntoWaterGoal.mobprotected final PathAwareEntityMoveThroughVillageGoal.mobprotected final PathAwareEntityMoveToTargetPosGoal.mobprotected final PathAwareEntityWanderAroundGoal.mobprivate final PathAwareEntityWanderNearTargetGoal.mobFields in net.minecraft.entity.ai.goal with type parameters of type PathAwareEntityModifier and TypeFieldDescriptionprivate final Function<PathAwareEntity, TagKey<DamageType>> EscapeDangerGoal.entityToDangerousDamageTypesMethods in net.minecraft.entity.ai.goal with parameters of type PathAwareEntityModifier and TypeMethodDescriptionprotected intGoToBedAndSleepGoal.getInterval(PathAwareEntity mob) protected intMoveToTargetPosGoal.getInterval(PathAwareEntity mob) Constructors in net.minecraft.entity.ai.goal with parameters of type PathAwareEntityModifierConstructorDescriptionEscapeDangerGoal(PathAwareEntity mob, double speed) EscapeDangerGoal(PathAwareEntity mob, double speed, Function<PathAwareEntity, TagKey<DamageType>> entityToDangerousDamageTypes) EscapeDangerGoal(PathAwareEntity mob, double speed, TagKey<DamageType> dangerousDamageTypes) 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, Predicate<ItemStack> temptItemPredicate, boolean canBeScared) TemptGoal(PathAwareEntity entity, double speed, Predicate<ItemStack> temptItemPredicate, boolean canBeScared, double range) 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) Constructor parameters in net.minecraft.entity.ai.goal with type arguments of type PathAwareEntityModifierConstructorDescriptionEscapeDangerGoal(PathAwareEntity mob, double speed, Function<PathAwareEntity, TagKey<DamageType>> entityToDangerousDamageTypes) -
Uses of PathAwareEntity in net.minecraft.entity.boss
Subclasses of PathAwareEntity in net.minecraft.entity.boss -
Uses of PathAwareEntity in net.minecraft.entity.mob
Subclasses of PathAwareEntity in net.minecraft.entity.mobModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.entity.mob declared as PathAwareEntityModifier and TypeFieldDescriptionprivate final PathAwareEntityDrownedEntity.WanderAroundOnSurfaceGoal.mobMethods in net.minecraft.entity.mob that return types with arguments of type PathAwareEntityModifier and TypeMethodDescriptionprivate static Task<PathAwareEntity> PiglinBrain.makeGoToSoulFireTask()Constructors in net.minecraft.entity.mob with parameters of type PathAwareEntityModifierConstructorDescription(package private)DestroyEggGoal(PathAwareEntity mob, double speed, int maxYDifference) WanderAroundOnSurfaceGoal(PathAwareEntity mob, double speed) Constructor parameters in net.minecraft.entity.mob with type arguments of type PathAwareEntityModifierConstructorDescriptionprotectedPathAwareEntity(EntityType<? extends PathAwareEntity> type, World world) -
Uses of PathAwareEntity in net.minecraft.entity.passive
Subclasses of PathAwareEntity in net.minecraft.entity.passiveModifier and TypeClassDescriptionclassclassclassclassclassclassclassRepresents an axolotl, the cutest predator.classclassclassMeow.classclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassMethods in net.minecraft.entity.passive that return types with arguments of type PathAwareEntityModifier and TypeMethodDescriptionprivate static Consumer<PathAwareEntity> CopperGolemBrain.createResetToIdleCallback()Constructors in net.minecraft.entity.passive with parameters of type PathAwareEntityModifierConstructorDescriptionFlyOntoTreeGoal(PathAwareEntity mob, double speed) (package private)StingGoal(PathAwareEntity mob, double speed, boolean pauseWhenMobIdle) -
Uses of PathAwareEntity in net.minecraft.entity.raid
Subclasses of PathAwareEntity in net.minecraft.entity.raid