Class SwitchVillagerJobTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
net.minecraft.entity.ai.brain.task.SwitchVillagerJobTask
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.TaskTask.Status
- 
Field SummaryFieldsFields inherited from class net.minecraft.entity.ai.brain.task.TaskentryCondition
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate booleancompetesForSameJobsite(GlobalPos p_233934_1_, PointOfInterestType p_233934_2_, VillagerEntity p_233934_3_) private booleanhasJobSite(VillagerEntity p_233931_1_) private booleanhasMatchingProfession(PointOfInterestType p_233930_1_, VillagerProfession p_233930_2_) private static VillagerEntityselectWinner(VillagerEntity p_233932_0_, VillagerEntity p_233932_1_) protected voidstart(ServerWorld p_212831_1_, VillagerEntity p_212831_2_, long p_212831_3_) Methods inherited from class net.minecraft.entity.ai.brain.task.TaskcanStillUse, checkExtraStartConditions, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
- 
Field Details- 
profession
 
- 
- 
Constructor Details- 
SwitchVillagerJobTask
 
- 
- 
Method Details- 
start- Overrides:
- startin class- Task<VillagerEntity>
 
- 
selectWinner
- 
competesForSameJobsiteprivate boolean competesForSameJobsite(GlobalPos p_233934_1_, PointOfInterestType p_233934_2_, VillagerEntity p_233934_3_) 
- 
hasMatchingProfessionprivate boolean hasMatchingProfession(PointOfInterestType p_233930_1_, VillagerProfession p_233930_2_) 
- 
hasJobSite
 
-