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 bfh
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
Modifier and TypeFieldDescriptionprivate final Predicate<LivingEntity>
private final BiConsumer<E,
LivingEntity> private static final int
private final boolean
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
ConstructorDescriptionForgetAttackTargetTask
(BiConsumer<E, LivingEntity> forgetCallback) ForgetAttackTargetTask
(Predicate<LivingEntity> alternativePredicate) ForgetAttackTargetTask
(Predicate<LivingEntity> alternativePredicate, BiConsumer<E, LivingEntity> forgetCallback) ForgetAttackTargetTask
(Predicate<LivingEntity> alternativePredicate, BiConsumer<E, LivingEntity> forgetCallback, boolean shouldForgetIfTargetUnreachable) -
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
Lbfh;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 d
Lbfh;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
- Mappings:
Namespace Name Mixin selector official e
Lbfh;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
Lbfh;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>
Lbfh;<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>
Lbfh;<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
- Mappings:
Namespace Name Mixin selector official <init>
Lbfh;<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>
Lbfh;<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
- Overrides:
run
in classTask<E extends MobEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbfh;a(Lafo;Lbbh;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
Lbfh;b(Lbbh;)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
Lbfh;c(Lbbh;)Lbbf;
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
Lbfh;a(Lbbf;)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
Lbfh;d(Lbbh;)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
Lbfh;a(Lbbh;)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
-