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 official ble
intermediary net/minecraft/class_7911
named net/minecraft/entity/ai/brain/task/TaskRunnable
-
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 official trigger
Lble;trigger(Laip;Lbfx;J)Z
intermediary trigger
Lnet/minecraft/class_7911;trigger(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)Z
named trigger
Lnet/minecraft/entity/ai/brain/task/TaskRunnable;trigger(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)Z
-