Uses of Interface
net.minecraft.entity.ai.brain.task.Task
Package
Description
This and its subpackages make up the brain system used by some modern Minecraft entities,
such as villagers, piglins, and axolotls.
-
Uses of Task in net.minecraft.entity.ai.brain
Modifier and TypeMethodDescriptionBrain.getRunningTasks()
Deprecated.(package private) ImmutableList
<? extends com.mojang.datafixers.util.Pair<Integer, ? extends Task<? super E>>> Brain.indexTaskList
(int begin, ImmutableList<? extends Task<? super E>> tasks) Modifier and TypeMethodDescription(package private) ImmutableList
<? extends com.mojang.datafixers.util.Pair<Integer, ? extends Task<? super E>>> Brain.indexTaskList
(int begin, ImmutableList<? extends Task<? super E>> tasks) void
Brain.setTaskList
(Activity activity, int begin, ImmutableList<? extends Task<? super E>> list) void
Brain.setTaskList
(Activity activity, int begin, ImmutableList<? extends Task<? super E>> tasks, MemoryModuleType<?> memoryType) void
Brain.setTaskList
(Activity activity, ImmutableList<? extends com.mojang.datafixers.util.Pair<Integer, ? extends Task<? super E>>> indexedTasks) void
Brain.setTaskList
(Activity activity, ImmutableList<? extends com.mojang.datafixers.util.Pair<Integer, ? extends Task<? super E>>> indexedTasks, Set<com.mojang.datafixers.util.Pair<MemoryModuleType<?>, MemoryModuleState>> requiredMemories) void
Brain.setTaskList
(Activity activity, ImmutableList<? extends com.mojang.datafixers.util.Pair<Integer, ? extends Task<? super E>>> indexedTasks, Set<com.mojang.datafixers.util.Pair<MemoryModuleType<?>, MemoryModuleState>> requiredMemories, Set<MemoryModuleType<?>> forgettingMemories) -
Uses of Task in net.minecraft.entity.ai.brain.task
Modifier and TypeClassDescriptionclass
BiasedLongJumpTask<E extends MobEntity>
class
class
class
class
class
class
class
class
CompositeTask<E extends LivingEntity>
class
class
CrossbowAttackTask<E extends MobEntity & CrossbowUser,
T extends LivingEntity> class
DigTask<E extends WardenEntity>
class
class
EmergeTask<E extends WardenEntity>
class
class
class
FleeTask<E extends PathAwareEntity>
class
class
class
class
class
GiveInventoryToLookTargetTask<E extends LivingEntity & InventoryOwner>
class
class
class
class
LongJumpTask<E extends MobEntity>
class
class
MultiTickTask<E extends LivingEntity>
class
class
class
PrepareRamTask<E extends PathAwareEntity>
The task where an entity finds a target, a place to start its ram, and wait to start its ram.class
class
class
RandomTask<E extends LivingEntity>
class
class
SingleTickTask<E extends LivingEntity>
class
class
SniffTask<E extends WardenEntity>
class
class
class
class
class
class
class
class
class
Modifier and TypeMethodDescriptionstatic Task
<LivingEntity> AdmireItemTask.create
(int duration) static Task
<LivingEntity> AdmireItemTimeLimitTask.create
(int cooldown, int timeLimit) static Task
<LivingEntity> DefeatTargetTask.create
(int celebrationDuration, BiPredicate<LivingEntity, LivingEntity> predicate) static Task
<LivingEntity> EndRaidTask.create()
static <E extends LivingEntity,
T extends LivingEntity>
Task<E> FindEntityTask.create
(EntityType<? extends T> type, int maxDistance, Predicate<E> entityPredicate, Predicate<T> targetPredicate, MemoryModuleType<T> targetModule, float speed, int completionRange) static <T extends LivingEntity>
Task<LivingEntity> FindEntityTask.create
(EntityType<? extends T> type, int maxDistance, MemoryModuleType<T> targetModule, float speed, int completionRange) static Task
<LivingEntity> FindInteractionTargetTask.create
(EntityType<?> type, int maxDistance) static 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 <E extends WardenEntity>
Task<E> FindRoarTargetTask.create
(Function<E, Optional<? extends LivingEntity>> targetFinder) static Task
<LivingEntity> ForgetAngryAtTargetTask.create()
ForgetAttackTargetTask.create()
ForgetAttackTargetTask.create
(BiConsumer<E, LivingEntity> forgetCallback) ForgetAttackTargetTask.create
(Predicate<LivingEntity> alternativeCondition) ForgetAttackTargetTask.create
(Predicate<LivingEntity> alternativeCondition, BiConsumer<E, LivingEntity> forgetCallback, boolean shouldForgetIfTargetUnreachable) static Task
<LivingEntity> ForgetBellRingTask.create
(int maxHiddenSeconds, int distance) static Task
<LivingEntity> ForgetCompletedPointOfInterestTask.create
(Predicate<RegistryEntry<PointOfInterestType>> poiTypePredicate, MemoryModuleType<GlobalPos> poiPosModule) static <E extends LivingEntity>
Task<E> ForgetTask.create
(Predicate<E> condition, MemoryModuleType<?> memory) static Task
<PathAwareEntity> GoToNearbyPositionTask.create
(MemoryModuleType<GlobalPos> posModule, float walkSpeed, int completionRange, int maxDistance) static Task
<VillagerEntity> GoToPointOfInterestTask.create
(float speed, int completionRange) static Task
<VillagerEntity> GoToSecondaryPositionTask.create
(MemoryModuleType<List<GlobalPos>> secondaryPositions, float speed, int completionRange, int primaryPositionActivationDistance, MemoryModuleType<GlobalPos> primaryPosition) static Task
<VillagerEntity> GoToWorkTask.create()
static Task
<LivingEntity> HideWhenBellRingsTask.create()
static Task
<LivingEntity> HuntFinishTask.create()
static Task
<LivingEntity> static Task
<LivingEntity> LookAtDisturbanceTask.create()
static Task
<LivingEntity> LookAtMobTask.create
(SpawnGroup spawnGroup, float maxDistance) static Task
<VillagerEntity> LoseJobOnSiteLossTask.create()
static <E extends LivingEntity,
T>
Task<E> MemoryTransferTask.create
(Predicate<E> runPredicate, MemoryModuleType<? extends T> sourceType, MemoryModuleType<T> targetType, UniformIntProvider expiry) static Task
<LivingEntity> OpenDoorsTask.create()
static Task
<LivingEntity> PacifyTask.create
(MemoryModuleType<?> requiredMemory, int duration) static Task
<LivingEntity> PlayDeadTimerTask.create()
static Task
<PathAwareEntity> PlayWithVillagerBabiesTask.create()
RangedApproachTask.create
(float speed) RangedApproachTask.create
(Function<LivingEntity, Float> speed) static Task
<PiglinEntity> RemoveOffHandItemTask.create()
static <E extends LivingEntity>
Task<E> RidingTask.create
(int range, BiPredicate<E, Entity> alternativeRideCondition) static Task
<LivingEntity> RingBellTask.create()
static Task
<LivingEntity> ScheduleActivityTask.create()
static Task
<PathAwareEntity> SeekWaterTask.create
(int range, float speed) static Task
<LivingEntity> StartRaidTask.create()
static Task
<LivingEntity> StartRidingTask.create
(float speed) static Task
<LivingEntity> StartSniffingTask.create()
static Task
<LivingEntity> StopPanickingTask.create()
static Task
<PathAwareEntity> StrollTask.create
(float speed, int horizontalRadius, int verticalRadius) static Task
<VillagerEntity> TakeJobSiteTask.create
(float speed) UpdateAttackTargetTask.create
(Function<E, Optional<? extends LivingEntity>> targetGetter) UpdateAttackTargetTask.create
(Predicate<E> startCondition, Function<E, Optional<? extends LivingEntity>> targetGetter) static Task
<LivingEntity> WakeUpTask.create()
static Task
<PathAwareEntity> WalkHomeTask.create
(float speed) static Task
<LivingEntity> WalkToNearestVisibleWantedItemTask.create
(float speed, boolean requiresWalkTarget, int radius) static <E extends LivingEntity>
Task<E> WalkToNearestVisibleWantedItemTask.create
(Predicate<E> startCondition, float speed, boolean requiresWalkTarget, int radius) static Task
<PathAwareEntity> WalkTowardsLandTask.create
(int range, float speed) static Task
<LivingEntity> WalkTowardsLookTargetTask.create
(Function<LivingEntity, Optional<LookTarget>> lookTargetFunction, Predicate<LivingEntity> predicate, int completionRange, int searchRange, float speed) static Task
<PathAwareEntity> WalkTowardsWaterTask.create
(int range, float speed) static Task
<PathAwareEntity> WanderIndoorsTask.create
(float speed) static Task
<LivingEntity> WantNewItemTask.create
(int range) static Task
<VillagerEntity> WorkStationCompetitionTask.create()
static Task
<PathAwareEntity> StrollTask.createDynamicRadius
(float speed) static Task
<PathAwareEntity> GoToRememberedPositionTask.createPosBased
(MemoryModuleType<BlockPos> posModule, float speed, int range, boolean requiresWalkTarget) static Task
<PathAwareEntity> StrollTask.createSolidTargeting
(float speed) static Task
<LivingEntity> LookAtMobWithIntervalTask.follow
(float maxDistance, UniformIntProvider interval) Deprecated.private static Task
<LivingEntity> LookAtMobWithIntervalTask.follow
(float maxDistance, UniformIntProvider interval, Predicate<LivingEntity> predicate) Deprecated.static Task
<LivingEntity> LookAtMobWithIntervalTask.follow
(EntityType<?> type, float maxDistance, UniformIntProvider interval) Deprecated.Modifier and TypeMethodDescriptionprivate static com.mojang.datafixers.util.Pair
<Integer, Task<LivingEntity>> VillagerTaskListProvider.createBusyFollowTask()
static ImmutableList
<com.mojang.datafixers.util.Pair<Integer, ? extends Task<? super VillagerEntity>>> VillagerTaskListProvider.createCoreTasks
(VillagerProfession profession, float speed) private static com.mojang.datafixers.util.Pair
<Integer, Task<LivingEntity>> VillagerTaskListProvider.createFreeFollowTask()
static ImmutableList
<com.mojang.datafixers.util.Pair<Integer, ? extends Task<? super VillagerEntity>>> VillagerTaskListProvider.createHideTasks
(VillagerProfession profession, float speed) static ImmutableList
<com.mojang.datafixers.util.Pair<Integer, ? extends Task<? super VillagerEntity>>> VillagerTaskListProvider.createIdleTasks
(VillagerProfession profession, float speed) static ImmutableList
<com.mojang.datafixers.util.Pair<Integer, ? extends Task<? super VillagerEntity>>> VillagerTaskListProvider.createMeetTasks
(VillagerProfession profession, float speed) static ImmutableList
<com.mojang.datafixers.util.Pair<Integer, ? extends Task<? super VillagerEntity>>> VillagerTaskListProvider.createPanicTasks
(VillagerProfession profession, float speed) static ImmutableList
<com.mojang.datafixers.util.Pair<Integer, ? extends Task<? super VillagerEntity>>> VillagerTaskListProvider.createPlayTasks
(float speed) static ImmutableList
<com.mojang.datafixers.util.Pair<Integer, ? extends Task<? super VillagerEntity>>> VillagerTaskListProvider.createPreRaidTasks
(VillagerProfession profession, float speed) static ImmutableList
<com.mojang.datafixers.util.Pair<Integer, ? extends Task<? super VillagerEntity>>> VillagerTaskListProvider.createRaidTasks
(VillagerProfession profession, float speed) static ImmutableList
<com.mojang.datafixers.util.Pair<Integer, ? extends Task<? super VillagerEntity>>> VillagerTaskListProvider.createRestTasks
(VillagerProfession profession, float speed) static ImmutableList
<com.mojang.datafixers.util.Pair<Integer, ? extends Task<? super VillagerEntity>>> VillagerTaskListProvider.createWorkTasks
(VillagerProfession profession, float speed) Modifier and TypeMethodDescriptionabstract <E extends LivingEntity>
voidCompositeTask.RunMode.run
(Stream<Task<? super E>> tasks, ServerWorld world, E entity, long time) ModifierConstructorDescriptionCompositeTask
(Map<MemoryModuleType<?>, MemoryModuleState> requiredMemoryState, Set<MemoryModuleType<?>> memoriesToForgetWhenStopped, CompositeTask.Order order, CompositeTask.RunMode runMode, List<com.mojang.datafixers.util.Pair<? extends Task<? super E>, Integer>> tasks) RandomTask
(List<com.mojang.datafixers.util.Pair<? extends Task<? super E>, Integer>> tasks) RandomTask
(Map<MemoryModuleType<?>, MemoryModuleState> requiredMemoryState, List<com.mojang.datafixers.util.Pair<? extends Task<? super E>, Integer>> tasks) -
Uses of Task in net.minecraft.entity.mob
Modifier and TypeFieldDescriptionprivate static final Task
<WardenEntity> WardenBrain.RESET_DIG_COOLDOWN_TASK
Modifier and TypeMethodDescriptionprivate static Task
<PiglinEntity> PiglinBrain.goToNemesisTask()
private static Task
<PiglinEntity> PiglinBrain.makeFleeFromZombifiedPiglinTask()
private static Task
<PathAwareEntity> PiglinBrain.makeGoToSoulFireTask()
private static Task
<LivingEntity> PiglinBrain.makeRememberRideableHoglinTask()
-
Uses of Task in net.minecraft.entity.passive
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
private static class
private static class
private static class
private static class
private static class
private static class