Class ForgetAttackTargetTask

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

public class ForgetAttackTargetTask extends Object
Mappings:
Namespace Name
named net/minecraft/entity/ai/brain/task/ForgetAttackTargetTask
intermediary net/minecraft/class_4828
official bxy
  • Field Details

    • REMEMBER_TIME

      private static final int REMEMBER_TIME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named REMEMBER_TIME Lnet/minecraft/entity/ai/brain/task/ForgetAttackTargetTask;REMEMBER_TIME:I
      intermediary field_30177 Lnet/minecraft/class_4828;field_30177:I
      official a Lbxy;a:I
  • Constructor Details

    • ForgetAttackTargetTask

      public ForgetAttackTargetTask()
  • Method Details

    • create

      public static <E extends MobEntity> Task<E> create(BiConsumer<E,LivingEntity> forgetCallback)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/entity/ai/brain/task/ForgetAttackTargetTask;create(Ljava/util/function/BiConsumer;)Lnet/minecraft/entity/ai/brain/task/Task;
      intermediary method_47137 Lnet/minecraft/class_4828;method_47137(Ljava/util/function/BiConsumer;)Lnet/minecraft/class_7893;
      official a Lbxy;a(Ljava/util/function/BiConsumer;)Lbvk;
    • create

      public static <E extends MobEntity> Task<E> create(Predicate<LivingEntity> alternativeCondition)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/entity/ai/brain/task/ForgetAttackTargetTask;create(Ljava/util/function/Predicate;)Lnet/minecraft/entity/ai/brain/task/Task;
      intermediary method_47138 Lnet/minecraft/class_4828;method_47138(Ljava/util/function/Predicate;)Lnet/minecraft/class_7893;
      official a Lbxy;a(Ljava/util/function/Predicate;)Lbvk;
    • create

      public static <E extends MobEntity> Task<E> create()
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/entity/ai/brain/task/ForgetAttackTargetTask;create()Lnet/minecraft/entity/ai/brain/task/Task;
      intermediary method_47132 Lnet/minecraft/class_4828;method_47132()Lnet/minecraft/class_7893;
      official a Lbxy;a()Lbvk;
    • create

      public static <E extends MobEntity> Task<E> create(Predicate<LivingEntity> alternativeCondition, BiConsumer<E,LivingEntity> forgetCallback, boolean shouldForgetIfTargetUnreachable)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/entity/ai/brain/task/ForgetAttackTargetTask;create(Ljava/util/function/Predicate;Ljava/util/function/BiConsumer;Z)Lnet/minecraft/entity/ai/brain/task/Task;
      intermediary method_47139 Lnet/minecraft/class_4828;method_47139(Ljava/util/function/Predicate;Ljava/util/function/BiConsumer;Z)Lnet/minecraft/class_7893;
      official a Lbxy;a(Ljava/util/function/Predicate;Ljava/util/function/BiConsumer;Z)Lbvk;
    • cannotReachTarget

      private static boolean cannotReachTarget(LivingEntity livingEntity, Optional<Long> optional)
      Mappings:
      Namespace Name Mixin selector
      named cannotReachTarget Lnet/minecraft/entity/ai/brain/task/ForgetAttackTargetTask;cannotReachTarget(Lnet/minecraft/entity/LivingEntity;Ljava/util/Optional;)Z
      intermediary method_24621 Lnet/minecraft/class_4828;method_24621(Lnet/minecraft/class_1309;Ljava/util/Optional;)Z
      official a Lbxy;a(Lbtq;Ljava/util/Optional;)Z