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>
-
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> function, int int2)
-
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
-
completionRange
private final int completionRange
-
-
Constructor Details
-
GoTowardsLookTarget
public GoTowardsLookTarget(float speed, int completionRange) -
GoTowardsLookTarget
-
-
Method Details
-
run
- Overrides:
run
in classTask<LivingEntity>
-