Uses of Class
net.minecraft.entity.ai.brain.task.SingleTickTask
Package
Description
-
Uses of SingleTickTask in net.minecraft.entity.ai.brain.task
Modifier and TypeMethodDescriptionstatic SingleTickTask
<MobEntity> AttackTask.create
(int distance, float forwardMovement) 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) private static <T> SingleTickTask
<PathAwareEntity> GoToRememberedPositionTask.create
(MemoryModuleType<T> posSource, float speed, int range, boolean requiresWalkTarget, Function<T, Vec3d> posGetter) static SingleTickTask
<LivingEntity> GoTowardsLookTargetTask.create
(float speed, int completionRange) static SingleTickTask
<LivingEntity> GoTowardsLookTargetTask.create
(Predicate<LivingEntity> predicate, Function<LivingEntity, Float> speed, int completionRange) static SingleTickTask
<LivingEntity> HideInHomeTask.create
(int maxDistance, float walkSpeed, int preferredDistance) static SingleTickTask
<PiglinEntity> HuntHoglinTask.create()
static SingleTickTask
<LivingEntity> LookAtMobTask.create
(float maxDistance) static SingleTickTask
<LivingEntity> LookAtMobTask.create
(Predicate<LivingEntity> predicate, float maxDistance) static SingleTickTask
<LivingEntity> LookAtMobTask.create
(EntityType<?> type, float maxDistance) static SingleTickTask
<LivingEntity> MeetVillagerTask.create()
static SingleTickTask
<MobEntity> MeleeAttackTask.create
(int cooldown) static SingleTickTask
<LivingEntity> SeekSkyTask.create
(float speed) static SingleTickTask
<PathAwareEntity> StrollTask.create
(float speed) static SingleTickTask
<PathAwareEntity> StrollTask.create
(float speed, boolean strollInsideWater) private static SingleTickTask
<PathAwareEntity> StrollTask.create
(float speed, Function<PathAwareEntity, Vec3d> targetGetter, Predicate<PathAwareEntity> shouldRun) static SingleTickTask
<VillagerEntity> VillagerWalkTowardsTask.create
(MemoryModuleType<GlobalPos> destination, float speed, int completionRange, int maxDistance, int maxRunTime) static SingleTickTask
<PassiveEntity> WalkTowardClosestAdultTask.create
(UniformIntProvider executionRange, float speed) static SingleTickTask
<PassiveEntity> WalkTowardClosestAdultTask.create
(UniformIntProvider executionRange, Function<LivingEntity, Float> speed) static <E extends MobEntity>
SingleTickTask<E> WalkTowardsPosTask.create
(MemoryModuleType<BlockPos> posModule, int completionRange, float speed) static SingleTickTask
<PathAwareEntity> GoToRememberedPositionTask.createEntityBased
(MemoryModuleType<? extends Entity> entityModule, float speed, int range, boolean requiresWalkTarget) static <E extends LivingEntity>
SingleTickTask<E> Tasks.pickRandomly
(List<com.mojang.datafixers.util.Pair<? extends TaskRunnable<? super E>, Integer>> weightedTasks) Returns a task that picks and runs a task fromweightedTasks
randomly.static <E extends LivingEntity>
SingleTickTask<E> TaskTriggerer.predicate
(BiPredicate<ServerWorld, E> predicate) static <E extends LivingEntity>
SingleTickTask<E> static <E extends LivingEntity>
SingleTickTask<E> TaskTriggerer.runIf
(Predicate<E> predicate, SingleTickTask<? super E> task) static <E extends LivingEntity>
SingleTickTask<E> TaskTriggerer.runIf
(TaskRunnable<? super E> predicate, TaskRunnable<? super E> task) static <E extends LivingEntity>
SingleTickTask<E> TaskTriggerer.task
(Function<TaskTriggerer.TaskContext<E>, ? extends com.mojang.datafixers.kinds.App<TaskTriggerer.K1<E>, TaskRunnable<E>>> creator) static <E extends LivingEntity>
SingleTickTask<E> Tasks.weighted
(List<com.mojang.datafixers.util.Pair<? extends TaskRunnable<? super E>, Integer>> weightedTasks, CompositeTask.Order order, CompositeTask.RunMode runMode) Returns a task that runs task(s) fromweightedTasks
.Modifier and TypeMethodDescriptionstatic <E extends LivingEntity>
SingleTickTask<E> TaskTriggerer.runIf
(Predicate<E> predicate, SingleTickTask<? super E> task) -
Uses of SingleTickTask in net.minecraft.entity.mob
Modifier and TypeMethodDescriptionprivate static ImmutableList
<com.mojang.datafixers.util.Pair<SingleTickTask<LivingEntity>, Integer>> PiglinBrain.makeFollowTasks()
-
Uses of SingleTickTask in net.minecraft.entity.passive
Modifier and TypeFieldDescriptionprivate static final SingleTickTask
<ArmadilloEntity> ArmadilloBrain.UNROLL_TASK