Class UpdateAttackTargetTask

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

public class UpdateAttackTargetTask extends Object
Mappings:
Namespace Name
named net/minecraft/entity/ai/brain/task/UpdateAttackTargetTask
intermediary net/minecraft/class_4824
official bxw
  • 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
      named create Lnet/minecraft/entity/ai/brain/task/UpdateAttackTargetTask;create(Ljava/util/function/Function;)Lnet/minecraft/entity/ai/brain/task/Task;
      intermediary method_47119 Lnet/minecraft/class_4824;method_47119(Ljava/util/function/Function;)Lnet/minecraft/class_7893;
      official a Lbxw;a(Ljava/util/function/Function;)Lbvl;
    • create

      public static <E extends MobEntity> Task<E> create(Predicate<E> startCondition, Function<E,Optional<? extends LivingEntity>> targetGetter)
      Mappings:
      Namespace Name Mixin selector
      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;
      intermediary method_47120 Lnet/minecraft/class_4824;method_47120(Ljava/util/function/Predicate;Ljava/util/function/Function;)Lnet/minecraft/class_7893;
      official a Lbxw;a(Ljava/util/function/Predicate;Ljava/util/function/Function;)Lbvl;