Class WalkTowardJobSiteTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
net.minecraft.entity.ai.brain.task.WalkTowardJobSiteTask
public class WalkTowardJobSiteTask extends Task<VillagerEntity>
-
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 (package private) floatspeedFields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates -
Constructor Summary
Constructors Constructor Description WalkTowardJobSiteTask(float speed) -
Method Summary
Modifier and Type Method Description protected voidfinishRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)protected voidkeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)protected booleanshouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)protected booleanshouldRun(ServerWorld serverWorld, VillagerEntity villagerEntity)Methods inherited from class net.minecraft.entity.ai.brain.task.Task
getStatus, isTimeLimitExceeded, run, stop, tick, toString, tryStarting
-
Field Details
-
speed
final float speed
-
-
Constructor Details
-
WalkTowardJobSiteTask
public WalkTowardJobSiteTask(float speed)
-
-
Method Details
-
shouldRun
- Overrides:
shouldRunin classTask<VillagerEntity>
-
shouldKeepRunning
protected boolean shouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)- Overrides:
shouldKeepRunningin classTask<VillagerEntity>
-
keepRunning
- Overrides:
keepRunningin classTask<VillagerEntity>
-
finishRunning
- Overrides:
finishRunningin classTask<VillagerEntity>
-