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 cbo
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    trigger(ServerWorld world, E entity, long time)
    Runs the task.
  • Method Details

    • trigger

      boolean trigger(ServerWorld world, E entity, long time)
      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 Lcbo;trigger(Lash;Lbwf;J)Z