Class ForgetAttackTargetTask<E extends MobEntity>

java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.ForgetAttackTargetTask<E>

public class ForgetAttackTargetTask<E extends MobEntity> extends Task<E>
Mappings:
Namespace Name
official bge
intermediary net/minecraft/class_4828
named net/minecraft/entity/ai/brain/task/ForgetAttackTargetTask
  • Field Details

    • REMEMBER_TIME

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

      private final Predicate<LivingEntity> alternativeCondition
      Mappings:
      Namespace Name Mixin selector
      official d Lbge;d:Ljava/util/function/Predicate;
      intermediary field_22329 Lnet/minecraft/class_4828;field_22329:Ljava/util/function/Predicate;
      named alternativeCondition Lnet/minecraft/entity/ai/brain/task/ForgetAttackTargetTask;alternativeCondition:Ljava/util/function/Predicate;
    • forgetCallback

      private final BiConsumer<E extends MobEntity,LivingEntity> forgetCallback
      Mappings:
      Namespace Name Mixin selector
      official e Lbge;e:Ljava/util/function/BiConsumer;
      intermediary field_30178 Lnet/minecraft/class_4828;field_30178:Ljava/util/function/BiConsumer;
      named forgetCallback Lnet/minecraft/entity/ai/brain/task/ForgetAttackTargetTask;forgetCallback:Ljava/util/function/BiConsumer;
    • shouldForgetIfTargetUnreachable

      private final boolean shouldForgetIfTargetUnreachable
      Mappings:
      Namespace Name Mixin selector
      official f Lbge;f:Z
      intermediary field_38102 Lnet/minecraft/class_4828;field_38102:Z
      named shouldForgetIfTargetUnreachable Lnet/minecraft/entity/ai/brain/task/ForgetAttackTargetTask;shouldForgetIfTargetUnreachable:Z
  • Constructor Details

    • ForgetAttackTargetTask

      public ForgetAttackTargetTask(Predicate<LivingEntity> alternativePredicate, BiConsumer<E,LivingEntity> forgetCallback, boolean shouldForgetIfTargetUnreachable)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbge;<init>(Ljava/util/function/Predicate;Ljava/util/function/BiConsumer;Z)V
      intermediary <init> Lnet/minecraft/class_4828;<init>(Ljava/util/function/Predicate;Ljava/util/function/BiConsumer;Z)V
      named <init> Lnet/minecraft/entity/ai/brain/task/ForgetAttackTargetTask;<init>(Ljava/util/function/Predicate;Ljava/util/function/BiConsumer;Z)V
    • ForgetAttackTargetTask

      public ForgetAttackTargetTask(Predicate<LivingEntity> alternativePredicate, BiConsumer<E,LivingEntity> forgetCallback)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbge;<init>(Ljava/util/function/Predicate;Ljava/util/function/BiConsumer;)V
      intermediary <init> Lnet/minecraft/class_4828;<init>(Ljava/util/function/Predicate;Ljava/util/function/BiConsumer;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/ForgetAttackTargetTask;<init>(Ljava/util/function/Predicate;Ljava/util/function/BiConsumer;)V
    • ForgetAttackTargetTask

      public ForgetAttackTargetTask(Predicate<LivingEntity> alternativePredicate)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbge;<init>(Ljava/util/function/Predicate;)V
      intermediary <init> Lnet/minecraft/class_4828;<init>(Ljava/util/function/Predicate;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/ForgetAttackTargetTask;<init>(Ljava/util/function/Predicate;)V
    • ForgetAttackTargetTask

      public ForgetAttackTargetTask(BiConsumer<E,LivingEntity> forgetCallback)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbge;<init>(Ljava/util/function/BiConsumer;)V
      intermediary <init> Lnet/minecraft/class_4828;<init>(Ljava/util/function/BiConsumer;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/ForgetAttackTargetTask;<init>(Ljava/util/function/BiConsumer;)V
    • ForgetAttackTargetTask

      public ForgetAttackTargetTask()
  • Method Details

    • run

      protected void run(ServerWorld serverWorld, E e, long long2)
      Overrides:
      run in class Task<E extends MobEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbge;a(Lagg;Lbce;J)V
      intermediary method_24623 Lnet/minecraft/class_4828;method_24623(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
      named run Lnet/minecraft/entity/ai/brain/task/ForgetAttackTargetTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
    • isAttackTargetInAnotherWorld

      private boolean isAttackTargetInAnotherWorld(E entity)
      Mappings:
      Namespace Name Mixin selector
      official b Lbge;b(Lbce;)Z
      intermediary method_24622 Lnet/minecraft/class_4828;method_24622(Lnet/minecraft/class_1308;)Z
      named isAttackTargetInAnotherWorld Lnet/minecraft/entity/ai/brain/task/ForgetAttackTargetTask;isAttackTargetInAnotherWorld(Lnet/minecraft/entity/mob/MobEntity;)Z
    • getAttackTarget

      private LivingEntity getAttackTarget(E entity)
      Mappings:
      Namespace Name Mixin selector
      official c Lbge;c(Lbce;)Lbcc;
      intermediary method_24625 Lnet/minecraft/class_4828;method_24625(Lnet/minecraft/class_1308;)Lnet/minecraft/class_1309;
      named getAttackTarget Lnet/minecraft/entity/ai/brain/task/ForgetAttackTargetTask;getAttackTarget(Lnet/minecraft/entity/mob/MobEntity;)Lnet/minecraft/entity/LivingEntity;
    • cannotReachTarget

      private static <E extends LivingEntity> boolean cannotReachTarget(E entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbge;a(Lbcc;)Z
      intermediary method_24621 Lnet/minecraft/class_4828;method_24621(Lnet/minecraft/class_1309;)Z
      named cannotReachTarget Lnet/minecraft/entity/ai/brain/task/ForgetAttackTargetTask;cannotReachTarget(Lnet/minecraft/entity/LivingEntity;)Z
    • isAttackTargetDead

      private boolean isAttackTargetDead(E entity)
      Mappings:
      Namespace Name Mixin selector
      official d Lbge;d(Lbce;)Z
      intermediary method_24626 Lnet/minecraft/class_4828;method_24626(Lnet/minecraft/class_1308;)Z
      named isAttackTargetDead Lnet/minecraft/entity/ai/brain/task/ForgetAttackTargetTask;isAttackTargetDead(Lnet/minecraft/entity/mob/MobEntity;)Z
    • forgetAttackTarget

      protected void forgetAttackTarget(E entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbge;a(Lbce;)V
      intermediary method_24627 Lnet/minecraft/class_4828;method_24627(Lnet/minecraft/class_1308;)V
      named forgetAttackTarget Lnet/minecraft/entity/ai/brain/task/ForgetAttackTargetTask;forgetAttackTarget(Lnet/minecraft/entity/mob/MobEntity;)V