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 bax
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 Lbax;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 c Lbax;c: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 Consumer<E extends MobEntity> forgetCallback
      Mappings:
      Namespace Name Mixin selector
      official d Lbax;d:Ljava/util/function/Consumer;
      intermediary field_30178 Lnet/minecraft/class_4828;field_30178:Ljava/util/function/Consumer;
      named forgetCallback Lnet/minecraft/entity/ai/brain/task/ForgetAttackTargetTask;forgetCallback:Ljava/util/function/Consumer;
  • Constructor Details

    • ForgetAttackTargetTask

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

      public ForgetAttackTargetTask(Predicate<LivingEntity> alternativeCondition)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbax;<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(Consumer<E> forgetCallback)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbax;<init>(Ljava/util/function/Consumer;)V
      intermediary <init> Lnet/minecraft/class_4828;<init>(Ljava/util/function/Consumer;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/ForgetAttackTargetTask;<init>(Ljava/util/function/Consumer;)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 Lbax;a(Ladc;Laxc;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 Lbax;b(Laxc;)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 Lbax;c(Laxc;)Laxa;
      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 Lbax;a(Laxa;)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 Lbax;d(Laxc;)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 Lbax;a(Laxc;)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