Class RangedApproachTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<MobEntity>
net.minecraft.entity.ai.brain.task.RangedApproachTask
- Mappings:
Namespace Name official bav
intermediary net/minecraft/class_4822
named net/minecraft/entity/ai/brain/task/RangedApproachTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Function<LivingEntity,
Float> private static final int
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
ConstructorDescriptionRangedApproachTask
(float speed) RangedApproachTask
(Function<LivingEntity, Float> speed) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
forgetWalkTarget
(LivingEntity entity) private void
rememberWalkTarget
(LivingEntity entity, LivingEntity target) protected void
run
(ServerWorld serverWorld, MobEntity mobEntity, 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
-
WEAPON_REACH_REDUCTION
private static final int WEAPON_REACH_REDUCTION- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lbav;a:I
intermediary field_30166
Lnet/minecraft/class_4822;field_30166:I
named WEAPON_REACH_REDUCTION
Lnet/minecraft/entity/ai/brain/task/RangedApproachTask;WEAPON_REACH_REDUCTION:I
-
speed
- Mappings:
Namespace Name Mixin selector official c
Lbav;c:Ljava/util/function/Function;
intermediary field_22323
Lnet/minecraft/class_4822;field_22323:Ljava/util/function/Function;
named speed
Lnet/minecraft/entity/ai/brain/task/RangedApproachTask;speed:Ljava/util/function/Function;
-
-
Constructor Details
-
RangedApproachTask
public RangedApproachTask(float speed) - Mappings:
Namespace Name Mixin selector official <init>
Lbav;<init>(F)V
intermediary <init>
Lnet/minecraft/class_4822;<init>(F)V
named <init>
Lnet/minecraft/entity/ai/brain/task/RangedApproachTask;<init>(F)V
-
RangedApproachTask
- Mappings:
Namespace Name Mixin selector official <init>
Lbav;<init>(Ljava/util/function/Function;)V
intermediary <init>
Lnet/minecraft/class_4822;<init>(Ljava/util/function/Function;)V
named <init>
Lnet/minecraft/entity/ai/brain/task/RangedApproachTask;<init>(Ljava/util/function/Function;)V
-
-
Method Details
-
run
- Overrides:
run
in classTask<MobEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbav;a(Ladi;Laxj;J)V
intermediary method_25945
Lnet/minecraft/class_4822;method_25945(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
named run
Lnet/minecraft/entity/ai/brain/task/RangedApproachTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
-
rememberWalkTarget
- Mappings:
Namespace Name Mixin selector official a
Lbav;a(Laxh;Laxh;)V
intermediary method_24605
Lnet/minecraft/class_4822;method_24605(Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)V
named rememberWalkTarget
Lnet/minecraft/entity/ai/brain/task/RangedApproachTask;rememberWalkTarget(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)V
-
forgetWalkTarget
- Mappings:
Namespace Name Mixin selector official a
Lbav;a(Laxh;)V
intermediary method_24604
Lnet/minecraft/class_4822;method_24604(Lnet/minecraft/class_1309;)V
named forgetWalkTarget
Lnet/minecraft/entity/ai/brain/task/RangedApproachTask;forgetWalkTarget(Lnet/minecraft/entity/LivingEntity;)V
-