Package net.minecraft
Class class_5754
public class class_5754 extends Task<PathAwareEntity>
-
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>
field_28316
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description class_5754(Function<LivingEntity,Float> function)
-
Method Summary
Modifier and Type Method Description protected void
finishRunning(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
protected boolean
isTimeLimitExceeded(long time)
protected void
keepRunning(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
protected float
method_33196(PathAwareEntity pathAwareEntity)
private Optional<PlayerEntity>
method_33198(PathAwareEntity pathAwareEntity)
protected void
run(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
protected boolean
shouldKeepRunning(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
-
Field Details
-
field_28316
-
-
Constructor Details
-
class_5754
-
-
Method Details
-
method_33196
-
method_33198
-
isTimeLimitExceeded
protected boolean isTimeLimitExceeded(long time)- Overrides:
isTimeLimitExceeded
in classTask<PathAwareEntity>
-
shouldKeepRunning
protected boolean shouldKeepRunning(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)- Overrides:
shouldKeepRunning
in classTask<PathAwareEntity>
-
run
- Overrides:
run
in classTask<PathAwareEntity>
-
finishRunning
- Overrides:
finishRunning
in classTask<PathAwareEntity>
-
keepRunning
- Overrides:
keepRunning
in classTask<PathAwareEntity>
-