Uses of Class
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
AdmireItemTask<E extends PiglinEntity>
class
AdmireItemTimeLimitTask<E extends PiglinEntity>
class
class
AttackTask<E extends MobEntity>
class
class
class
class
CompositeTask<E extends LivingEntity>
class
ConditionalTask<E extends LivingEntity>
class
CrossbowAttackTask<E extends MobEntity & CrossbowUser,
T extends LivingEntity> class
class
class
class
class
FindEntityTask<E extends LivingEntity,
T extends LivingEntity> class
class
class
class
class
class
ForgetAngryAtTargetTask<E extends MobEntity>
class
ForgetAttackTargetTask<E extends MobEntity>
class
class
class
ForgetTask<E extends LivingEntity>
class
class
class
GoToCelebrateTask<E extends MobEntity>
class
class
class
class
class
class
class
class
class
class
class
class
HuntFinishTask<E extends PiglinEntity>
class
HuntHoglinTask<E extends PiglinEntity>
class
class
class
LongJumpTask<E extends MobEntity>
class
class
class
class
class
MemoryTransferTask<E extends MobEntity,
T> class
class
class
class
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
RamImpactTask<E extends PathAwareEntity>
class
RandomTask<E extends LivingEntity>
class
class
RemoveOffHandItemTask<E extends PiglinEntity>
class
RidingTask<E extends LivingEntity,
T extends Entity> class
class
class
class
class
class
class
class
class
StartRidingTask<E extends LivingEntity>
class
class
class
class
class
class
class
TimeLimitedTask<E extends LivingEntity>
class
UpdateAttackTargetTask<E extends MobEntity>
class
class
class
class
class
class
class
class
WalkToNearestVisibleWantedItemTask<E extends LivingEntity>
class
WalkTowardClosestAdultTask<E extends PassiveEntity>
class
class
class
class
WantNewItemTask<E extends PiglinEntity>
class
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) ModifierConstructorDescriptionConditionalTask
(Predicate<E> condition, Task<? super E> delegate) ConditionalTask
(Predicate<E> condition, Task<? super E> delegate, boolean allowsContinuation) ConditionalTask
(Map<MemoryModuleType<?>, MemoryModuleState> requiredMemoryStates, Predicate<E> condition, Task<? super E> delegate, boolean allowsContinuation) ConditionalTask
(Map<MemoryModuleType<?>, MemoryModuleState> memory, Task<? super E> delegate) TimeLimitedTask
(Task<? super E> delegate, boolean skipFirstRun, UniformIntProvider timeRange) TimeLimitedTask
(Task<? super E> delegate, UniformIntProvider timeRange) ModifierConstructorDescriptionCompositeTask
(Map<MemoryModuleType<?>, MemoryModuleState> requiredMemoryState, Set<MemoryModuleType<?>> memoriesToForgetWhenStopped, CompositeTask.Order order, CompositeTask.RunMode runMode, List<com.mojang.datafixers.util.Pair<Task<? super E>, Integer>> tasks) RandomTask
(List<com.mojang.datafixers.util.Pair<Task<? super E>, Integer>> tasks) RandomTask
(Map<MemoryModuleType<?>, MemoryModuleState> requiredMemoryState, List<com.mojang.datafixers.util.Pair<Task<? super E>, Integer>> tasks)