Interface TaskRunnable<E extends LivingEntity>
- All Known Implementing Classes:
SingleTickTask
public interface TaskRunnable<E extends LivingEntity>
A functional interface that represents a task.
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/task/TaskRunnable
intermediary net/minecraft/class_7911
official byv
-
Method Summary
Modifier and TypeMethodDescriptionboolean
trigger
(ServerWorld world, E entity, long time) Runs the task.
-
Method Details
-
trigger
Runs the task.- Returns:
- whether the task successfully ran
- Mappings:
Namespace Name Mixin selector named trigger
Lnet/minecraft/entity/ai/brain/task/TaskRunnable;trigger(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)Z
intermediary trigger
Lnet/minecraft/class_7911;trigger(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)Z
official trigger
Lbyv;trigger(Laqt;Lbtl;J)Z
-