Class SwitchVillagerJobTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
net.minecraft.entity.ai.brain.task.SwitchVillagerJobTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status -
Field Summary
FieldsFields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition -
Constructor Summary
Constructors -
Method Summary
Modifier 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.Task
canStillUse, checkExtraStartConditions, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
profession
-
-
Constructor Details
-
SwitchVillagerJobTask
-
-
Method Details
-
start
- Overrides:
startin classTask<VillagerEntity>
-
selectWinner
-
competesForSameJobsite
private boolean competesForSameJobsite(GlobalPos p_233934_1_, PointOfInterestType p_233934_2_, VillagerEntity p_233934_3_) -
hasMatchingProfession
private boolean hasMatchingProfession(PointOfInterestType p_233930_1_, VillagerProfession p_233930_2_) -
hasJobSite
-