Class FindJobTask
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
-
- net.minecraft.entity.ai.brain.task.FindJobTask
-
public class FindJobTask extends Task<VillagerEntity>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
-
Field Summary
Fields Modifier and Type Field Description private float
speedModifier
-
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
-
Constructor Summary
Constructors Constructor Description FindJobTask(float p_i231545_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private 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
-
-
-
-
Method Detail
-
checkExtraStartConditions
protected boolean checkExtraStartConditions(ServerWorld p_212832_1_, VillagerEntity p_212832_2_)
- Overrides:
checkExtraStartConditions
in classTask<VillagerEntity>
-
start
protected void start(ServerWorld p_212831_1_, VillagerEntity p_212831_2_, long p_212831_3_)
- 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
private void eraseMemories(VillagerEntity p_234019_1_)
-
-