Class ForgetAttackTargetTask<E extends MobEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.ForgetAttackTargetTask<E>
- Mappings:
Namespace Name official bbe
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 inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
ConstructorDescriptionForgetAttackTargetTask
(Consumer<E> forgetCallback) ForgetAttackTargetTask
(Predicate<LivingEntity> alternativeCondition) ForgetAttackTargetTask
(Predicate<LivingEntity> condition, Consumer<E> forgetCallback) -
Method Summary
Modifier and TypeMethodDescriptionprivate static <E extends LivingEntity>
booleancannotReachTarget
(E entity) protected 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
-
REMEMBER_TIME
private static final int REMEMBER_TIME- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lbbe;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
- Mappings:
Namespace Name Mixin selector official c
Lbbe;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
- Mappings:
Namespace Name Mixin selector official d
Lbbe;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
- Mappings:
Namespace Name Mixin selector official <init>
Lbbe;<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
- Mappings:
Namespace Name Mixin selector official <init>
Lbbe;<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
- Mappings:
Namespace Name Mixin selector official <init>
Lbbe;<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
- Overrides:
run
in classTask<E extends MobEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbbe;a(Ladi;Laxj;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 b
Lbbe;b(Laxj;)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 c
Lbbe;c(Laxj;)Laxh;
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
Lbbe;a(Laxh;)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 d
Lbbe;d(Laxj;)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 a
Lbbe;a(Laxj;)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
-