Uses of Interface
net.minecraft.entity.ai.brain.task.TaskRunnable
-
Uses of TaskRunnable in net.minecraft.entity.ai.brain.task
Modifier 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) Modifier 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
.