Class ForgetAttackTargetTask
java.lang.Object
net.minecraft.entity.ai.brain.task.ForgetAttackTargetTask
- Mappings:
Namespace Name official bnl
intermediary net/minecraft/class_4828
named net/minecraft/entity/ai/brain/task/ForgetAttackTargetTask
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
cannotReachTarget
(LivingEntity livingEntity, Optional<Long> optional) create()
create
(BiConsumer<E, LivingEntity> forgetCallback) create
(Predicate<LivingEntity> alternativeCondition) create
(Predicate<LivingEntity> alternativeCondition, BiConsumer<E, LivingEntity> forgetCallback, boolean shouldForgetIfTargetUnreachable)
-
Field Details
-
REMEMBER_TIME
private static final int REMEMBER_TIME- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lbnl;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
-
-
Constructor Details
-
ForgetAttackTargetTask
public ForgetAttackTargetTask()
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector official a
Lbnl;a(Ljava/util/function/BiConsumer;)Lbky;
intermediary method_47137
Lnet/minecraft/class_4828;method_47137(Ljava/util/function/BiConsumer;)Lnet/minecraft/class_7893;
named create
Lnet/minecraft/entity/ai/brain/task/ForgetAttackTargetTask;create(Ljava/util/function/BiConsumer;)Lnet/minecraft/entity/ai/brain/task/Task;
-
create
- Mappings:
Namespace Name Mixin selector official a
Lbnl;a(Ljava/util/function/Predicate;)Lbky;
intermediary method_47138
Lnet/minecraft/class_4828;method_47138(Ljava/util/function/Predicate;)Lnet/minecraft/class_7893;
named create
Lnet/minecraft/entity/ai/brain/task/ForgetAttackTargetTask;create(Ljava/util/function/Predicate;)Lnet/minecraft/entity/ai/brain/task/Task;
-
create
- Mappings:
Namespace Name Mixin selector official a
Lbnl;a()Lbky;
intermediary method_47132
Lnet/minecraft/class_4828;method_47132()Lnet/minecraft/class_7893;
named create
Lnet/minecraft/entity/ai/brain/task/ForgetAttackTargetTask;create()Lnet/minecraft/entity/ai/brain/task/Task;
-
create
public static <E extends MobEntity> Task<E> create(Predicate<LivingEntity> alternativeCondition, BiConsumer<E, LivingEntity> forgetCallback, boolean shouldForgetIfTargetUnreachable) - Mappings:
Namespace Name Mixin selector official a
Lbnl;a(Ljava/util/function/Predicate;Ljava/util/function/BiConsumer;Z)Lbky;
intermediary method_47139
Lnet/minecraft/class_4828;method_47139(Ljava/util/function/Predicate;Ljava/util/function/BiConsumer;Z)Lnet/minecraft/class_7893;
named create
Lnet/minecraft/entity/ai/brain/task/ForgetAttackTargetTask;create(Ljava/util/function/Predicate;Ljava/util/function/BiConsumer;Z)Lnet/minecraft/entity/ai/brain/task/Task;
-
cannotReachTarget
- Mappings:
Namespace Name Mixin selector official a
Lbnl;a(Lbjg;Ljava/util/Optional;)Z
intermediary method_24621
Lnet/minecraft/class_4828;method_24621(Lnet/minecraft/class_1309;Ljava/util/Optional;)Z
named cannotReachTarget
Lnet/minecraft/entity/ai/brain/task/ForgetAttackTargetTask;cannotReachTarget(Lnet/minecraft/entity/LivingEntity;Ljava/util/Optional;)Z
-