Class LookAroundTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<MobEntity>
net.minecraft.entity.ai.brain.task.LookAroundTask
public class LookAroundTask extends Task<MobEntity>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description LookAroundTask(int minRunTime, int maxRunTime)
-
Method Summary
Modifier and Type Method Description protected void
finishRunning(ServerWorld serverWorld, MobEntity mobEntity, long long2)
protected void
keepRunning(ServerWorld serverWorld, MobEntity mobEntity, long long2)
protected boolean
shouldKeepRunning(ServerWorld serverWorld, MobEntity mobEntity, long long2)
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
getStatus, isTimeLimitExceeded, run, shouldRun, stop, tick, toString, tryStarting
-
Constructor Details
-
LookAroundTask
public LookAroundTask(int minRunTime, int maxRunTime)
-
-
Method Details
-
shouldKeepRunning
- Overrides:
shouldKeepRunning
in classTask<MobEntity>
-
finishRunning
- Overrides:
finishRunning
in classTask<MobEntity>
-
keepRunning
- Overrides:
keepRunning
in classTask<MobEntity>
-