Class FindJobTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
net.minecraft.entity.ai.brain.task.FindJobTask
-
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
canReachPos
(VillagerEntity p_234020_1_, BlockPos p_234020_2_, PointOfInterestType p_234020_3_) protected boolean
checkExtraStartConditions
(ServerWorld p_212832_1_, VillagerEntity p_212832_2_) private void
eraseMemories
(VillagerEntity p_234019_1_) private boolean
nearbyWantsJobsite
(PointOfInterestType p_234018_1_, VillagerEntity p_234018_2_, BlockPos p_234018_3_) protected void
start
(ServerWorld p_212831_1_, VillagerEntity p_212831_2_, long p_212831_3_) private void
yieldJobSite
(ServerWorld p_234022_1_, VillagerEntity p_234022_2_, VillagerEntity p_234022_3_, BlockPos p_234022_4_, boolean p_234022_5_) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
speedModifier
private final float speedModifier
-
-
Constructor Details
-
FindJobTask
public FindJobTask(float p_i231545_1_)
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classTask<VillagerEntity>
-
start
- Overrides:
start
in classTask<VillagerEntity>
-
nearbyWantsJobsite
private boolean nearbyWantsJobsite(PointOfInterestType p_234018_1_, VillagerEntity p_234018_2_, BlockPos p_234018_3_) -
yieldJobSite
private void yieldJobSite(ServerWorld p_234022_1_, VillagerEntity p_234022_2_, VillagerEntity p_234022_3_, BlockPos p_234022_4_, boolean p_234022_5_) -
canReachPos
private boolean canReachPos(VillagerEntity p_234020_1_, BlockPos p_234020_2_, PointOfInterestType p_234020_3_) -
eraseMemories
-