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 blg
intermediary net/minecraft/class_7911
named net/minecraft/entity/ai/brain/task/TaskRunnable
  • 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
      official trigger Lblg;trigger(Laif;Lbfz;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