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 bxk
  • 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 Lbxk;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 Lbxk;a(Ljava/util/function/BiConsumer;)Lbuw;
    • 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 Lbxk;a(Ljava/util/function/Predicate;)Lbuw;
    • 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 Lbxk;a()Lbuw;
    • 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 Lbxk;a(Ljava/util/function/Predicate;Ljava/util/function/BiConsumer;Z)Lbuw;
    • 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 Lbxk;a(Lbtc;Ljava/util/Optional;)Z