Class GoTowardsLookTarget
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<LivingEntity>
net.minecraft.entity.ai.brain.task.GoTowardsLookTarget
public class GoTowardsLookTarget extends Task<LivingEntity>
- Mappings:
Namespace Name official aus
intermediary net/minecraft/class_4120
named net/minecraft/entity/ai/brain/task/GoTowardsLookTarget
-
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 int
completionRange
private Function<LivingEntity,Float>
speed
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description GoTowardsLookTarget(float speed, int completionRange)
GoTowardsLookTarget(Function<LivingEntity,Float> speed, int completionRange)
-
Method Summary
Modifier and Type Method Description protected void
run(ServerWorld world, LivingEntity entity, long time)
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
Laus;b:Ljava/util/function/Function;
intermediary field_18378
Lnet/minecraft/class_4120;field_18378:Ljava/util/function/Function;
named speed
Lnet/minecraft/entity/ai/brain/task/GoTowardsLookTarget;speed:Ljava/util/function/Function;
-
completionRange
private final int completionRange- Mappings:
Namespace Name Mixin selector official c
Laus;c:I
intermediary field_19002
Lnet/minecraft/class_4120;field_19002:I
named completionRange
Lnet/minecraft/entity/ai/brain/task/GoTowardsLookTarget;completionRange:I
-
-
Constructor Details
-
GoTowardsLookTarget
public GoTowardsLookTarget(float speed, int completionRange)- Mappings:
Namespace Name Mixin selector official <init>
Laus;<init>(FI)V
intermediary <init>
Lnet/minecraft/class_4120;<init>(FI)V
named <init>
Lnet/minecraft/entity/ai/brain/task/GoTowardsLookTarget;<init>(FI)V
-
GoTowardsLookTarget
- Mappings:
Namespace Name Mixin selector official <init>
Laus;<init>(Ljava/util/function/Function;I)V
intermediary <init>
Lnet/minecraft/class_4120;<init>(Ljava/util/function/Function;I)V
named <init>
Lnet/minecraft/entity/ai/brain/task/GoTowardsLookTarget;<init>(Ljava/util/function/Function;I)V
-
-
Method Details
-
run
- Overrides:
run
in classTask<LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Lass;a(Laav;Lari;J)V
intermediary method_18920
Lnet/minecraft/class_4097;method_18920(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
named run
Lnet/minecraft/entity/ai/brain/task/Task;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
-