public class FollowCustomerTask extends Task<VillagerEntity>
Task.Status
Modifier and Type | Field and Description |
---|---|
private float |
speed |
requiredMemoryStates
Constructor and Description |
---|
FollowCustomerTask(float speed) |
Modifier and Type | Method and Description |
---|---|
protected void |
finishRunning(ServerWorld serverWorld,
VillagerEntity villagerEntity,
long long2) |
protected boolean |
isTimeLimitExceeded(long time) |
protected void |
keepRunning(ServerWorld serverWorld,
VillagerEntity villagerEntity,
long long2) |
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) |
private void |
update(VillagerEntity villager) |
protected boolean shouldRun(ServerWorld serverWorld, VillagerEntity villagerEntity)
shouldRun
in class Task<VillagerEntity>
protected boolean shouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
shouldKeepRunning
in class Task<VillagerEntity>
protected void run(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
run
in class Task<VillagerEntity>
protected void finishRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
finishRunning
in class Task<VillagerEntity>
protected void keepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
keepRunning
in class Task<VillagerEntity>
protected boolean isTimeLimitExceeded(long time)
isTimeLimitExceeded
in class Task<VillagerEntity>
private void update(VillagerEntity villager)