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_28316Fields 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 voidfinishRunning(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)protected booleanisTimeLimitExceeded(long time)protected voidkeepRunning(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)protected floatmethod_33196(PathAwareEntity pathAwareEntity)private Optional<PlayerEntity>method_33198(PathAwareEntity pathAwareEntity)protected voidrun(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)protected booleanshouldKeepRunning(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:
isTimeLimitExceededin classTask<PathAwareEntity>
-
shouldKeepRunning
protected boolean shouldKeepRunning(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)- Overrides:
shouldKeepRunningin classTask<PathAwareEntity>
-
run
- Overrides:
runin classTask<PathAwareEntity>
-
finishRunning
- Overrides:
finishRunningin classTask<PathAwareEntity>
-
keepRunning
- Overrides:
keepRunningin classTask<PathAwareEntity>
-