Uses of Interface
net.minecraft.entity.ai.brain.task.TaskRunnable
Packages that use TaskRunnable
-
Uses of TaskRunnable in net.minecraft.entity.ai.brain.task
Classes in net.minecraft.entity.ai.brain.task that implement TaskRunnableMethods in net.minecraft.entity.ai.brain.task with parameters of type TaskRunnableModifier and TypeMethodDescriptionstatic <E extends LivingEntity>
SingleTickTask<E>TaskTriggerer.runIf
(TaskRunnable<? super E> predicate, TaskRunnable<? super E> task) TaskTriggerer<E,
com.mojang.datafixers.util.Unit> TaskTriggerer.TaskContext.trigger
(TaskRunnable<? super E> runnable) Method parameters in net.minecraft.entity.ai.brain.task with type arguments of type TaskRunnableModifier and TypeMethodDescriptionstatic <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.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
.Constructors in net.minecraft.entity.ai.brain.task with parameters of type TaskRunnable