public class VillagerWorkTask extends Task<VillagerEntity>
Task.Status
Modifier and Type | Field and Description |
---|---|
private long |
lastCheckedTime |
requiredMemoryStates
Constructor and Description |
---|
VillagerWorkTask() |
Modifier and Type | Method and Description |
---|---|
protected void |
performAdditionalWork(ServerWorld world,
VillagerEntity entity) |
protected void |
run(ServerWorld serverWorld,
VillagerEntity villagerEntity,
long long2) |
protected boolean |
shouldKeepRunning(ServerWorld serverWorld,
VillagerEntity villagerEntity,
long long2) |
protected boolean |
shouldRun(ServerWorld serverWorld,
VillagerEntity villagerEntity) |
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, stop, tick, toString, tryStarting
protected boolean shouldRun(ServerWorld serverWorld, VillagerEntity villagerEntity)
shouldRun
in class Task<VillagerEntity>
protected void run(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
run
in class Task<VillagerEntity>
protected void performAdditionalWork(ServerWorld world, VillagerEntity entity)
protected boolean shouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
shouldKeepRunning
in class Task<VillagerEntity>