public class FarmerVillagerTask extends Task<VillagerEntity>
Task.Status
Modifier and Type | Field and Description |
---|---|
private BlockPos |
currentTarget |
private long |
nextResponseTime |
private List<BlockPos> |
targetPositions |
private int |
ticksRan |
requiredMemoryStates
Constructor and Description |
---|
FarmerVillagerTask() |
Modifier and Type | Method and Description |
---|---|
private BlockPos |
chooseRandomTarget(ServerWorld world) |
protected void |
finishRunning(ServerWorld serverWorld,
VillagerEntity villagerEntity,
long long2) |
private boolean |
isSuitableTarget(BlockPos pos,
ServerWorld world) |
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) |
getStatus, isTimeLimitExceeded, stop, tick, toString, tryStarting
protected boolean shouldRun(ServerWorld serverWorld, VillagerEntity villagerEntity)
shouldRun
in class Task<VillagerEntity>
@Nullable private BlockPos chooseRandomTarget(ServerWorld world)
private boolean isSuitableTarget(BlockPos pos, ServerWorld world)
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 shouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
shouldKeepRunning
in class Task<VillagerEntity>