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 auz
intermediary net/minecraft/class_4828
named net/minecraft/entity/ai/brain/task/ForgetAttackTargetTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Fields Modifier and Type Field Description private Predicate<LivingEntity>
alternativeCondition
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description ForgetAttackTargetTask()
ForgetAttackTargetTask(Predicate<LivingEntity> alternativeCondition)
-
Method Summary
Modifier and Type Method Description private static <E extends LivingEntity>
booleancannotReachTarget(E entity)
private void
forgetAttackTarget(E entity)
private LivingEntity
getAttackTarget(E entity)
private boolean
isAttackTargetDead(E entity)
private boolean
isAttackTargetInAnotherWorld(E entity)
protected void
run(ServerWorld serverWorld, E e, long long2)
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, shouldRun, stop, tick, toString, tryStarting
-
Field Details
-
alternativeCondition
- Mappings:
Namespace Name Mixin selector official b
Lauz;b: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;
-
-
Constructor Details
-
ForgetAttackTargetTask
- Mappings:
Namespace Name Mixin selector official <init>
Lauz;<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()
-
-
Method Details
-
run
- Overrides:
run
in classTask<E extends MobEntity>
- Mappings:
Namespace Name Mixin selector official a
Lauz;a(Laav;Larj;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
- Mappings:
Namespace Name Mixin selector official a
Lauz;a(Larj;)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
- Mappings:
Namespace Name Mixin selector official b
Lauz;b(Larj;)Lari;
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
- Mappings:
Namespace Name Mixin selector official a
Lauz;a(Lari;)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
- Mappings:
Namespace Name Mixin selector official c
Lauz;c(Larj;)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
- Mappings:
Namespace Name Mixin selector official d
Lauz;d(Larj;)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
-