Class RangedApproachTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<MobEntity>
net.minecraft.entity.ai.brain.task.RangedApproachTask
public class RangedApproachTask extends Task<MobEntity>
- Mappings:
Namespace Name official auq
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
Fields Modifier and Type Field Description private Function<LivingEntity,Float>
speed
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description RangedApproachTask(float speed)
RangedApproachTask(Function<LivingEntity,Float> speed)
-
Method Summary
Modifier and Type Method Description private 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
-
speed
- Mappings:
Namespace Name Mixin selector official b
Lauq;b: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>
Lauq;<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>
Lauq;<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
Lauq;a(Laav;Larj;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
Lauq;a(Lari;Lari;)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
Lauq;a(Lari;)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
-