public class WorkStationCompetitionTask extends Task<VillagerEntity>
Task.Status
Modifier and Type | Field and Description |
---|---|
(package private) VillagerProfession |
profession |
requiredMemoryStates
Constructor and Description |
---|
WorkStationCompetitionTask(VillagerProfession profession) |
Modifier and Type | Method and Description |
---|---|
private boolean |
hasJobSite(VillagerEntity villager) |
private boolean |
isCompletedWorkStation(PointOfInterestType poiType,
VillagerProfession profession) |
private boolean |
isUsingWorkStationAt(GlobalPos pos,
PointOfInterestType poiType,
VillagerEntity villager) |
private static VillagerEntity |
keepJobSiteForMoreExperiencedVillager(VillagerEntity first,
VillagerEntity second) |
protected void |
run(ServerWorld serverWorld,
VillagerEntity villagerEntity,
long long2) |
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, shouldRun, stop, tick, toString, tryStarting
final VillagerProfession profession
public WorkStationCompetitionTask(VillagerProfession profession)
protected void run(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
run
in class Task<VillagerEntity>
private static VillagerEntity keepJobSiteForMoreExperiencedVillager(VillagerEntity first, VillagerEntity second)
private boolean isUsingWorkStationAt(GlobalPos pos, PointOfInterestType poiType, VillagerEntity villager)
private boolean isCompletedWorkStation(PointOfInterestType poiType, VillagerProfession profession)
private boolean hasJobSite(VillagerEntity villager)