Class UpdateAttackTargetTask

java.lang.Object
net.minecraft.entity.ai.brain.task.UpdateAttackTargetTask

public class UpdateAttackTargetTask extends Object
Mappings:
Namespace Name
official bkc
intermediary net/minecraft/class_4824
named net/minecraft/entity/ai/brain/task/UpdateAttackTargetTask
  • Constructor Details

    • UpdateAttackTargetTask

      public UpdateAttackTargetTask()
  • Method Details

    • create

      public static <E extends MobEntity> Task<E> create(Function<E,Optional<? extends LivingEntity>> targetGetter)
      Mappings:
      Namespace Name Mixin selector
      official a Lbkc;a(Ljava/util/function/Function;)Lbhs;
      intermediary method_47119 Lnet/minecraft/class_4824;method_47119(Ljava/util/function/Function;)Lnet/minecraft/class_7893;
      named create Lnet/minecraft/entity/ai/brain/task/UpdateAttackTargetTask;create(Ljava/util/function/Function;)Lnet/minecraft/entity/ai/brain/task/Task;
    • create

      public static <E extends MobEntity> Task<E> create(Predicate<E> startCondition, Function<E,Optional<? extends LivingEntity>> targetGetter)
      Mappings:
      Namespace Name Mixin selector
      official a Lbkc;a(Ljava/util/function/Predicate;Ljava/util/function/Function;)Lbhs;
      intermediary method_47120 Lnet/minecraft/class_4824;method_47120(Ljava/util/function/Predicate;Ljava/util/function/Function;)Lnet/minecraft/class_7893;
      named create Lnet/minecraft/entity/ai/brain/task/UpdateAttackTargetTask;create(Ljava/util/function/Predicate;Ljava/util/function/Function;)Lnet/minecraft/entity/ai/brain/task/Task;