public class TakeJobSiteTask extends Task<VillagerEntity>
Task.Status| Modifier and Type | Field and Description |
|---|---|
private float |
speed |
requiredMemoryStates| Constructor and Description |
|---|
TakeJobSiteTask(float speed) |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
canReachJobSite(VillagerEntity villager,
BlockPos pos,
PointOfInterestType poiType) |
private boolean |
canUseJobSite(PointOfInterestType poiType,
VillagerEntity villager,
BlockPos pos) |
private void |
claimSite(ServerWorld world,
VillagerEntity previousOwner,
VillagerEntity newOwner,
BlockPos pos,
boolean jobSitePresent) |
private void |
forgetJobSiteAndWalkTarget(VillagerEntity villager) |
protected void |
run(ServerWorld serverWorld,
VillagerEntity villagerEntity,
long long2) |
protected boolean |
shouldRun(ServerWorld serverWorld,
VillagerEntity villagerEntity) |
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStartingprotected 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>private boolean canUseJobSite(PointOfInterestType poiType, VillagerEntity villager, BlockPos pos)
private void claimSite(ServerWorld world, VillagerEntity previousOwner, VillagerEntity newOwner, BlockPos pos, boolean jobSitePresent)
private boolean canReachJobSite(VillagerEntity villager, BlockPos pos, PointOfInterestType poiType)
private void forgetJobSiteAndWalkTarget(VillagerEntity villager)