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
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
competesForSameJobsite
(GlobalPos p_233934_1_, PointOfInterestType p_233934_2_, VillagerEntity p_233934_3_) private boolean
hasJobSite
(VillagerEntity p_233931_1_) private boolean
hasMatchingProfession
(PointOfInterestType p_233930_1_, VillagerProfession p_233930_2_) private static VillagerEntity
selectWinner
(VillagerEntity p_233932_0_, VillagerEntity p_233932_1_) protected void
start
(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:
start
in 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
-