Class YieldJobSite
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<Villager>
net.minecraft.world.entity.ai.behavior.YieldJobSite
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
canReachPos(Villager p_24868_, BlockPos p_24869_, PoiType p_24870_)
protected boolean
checkExtraStartConditions(ServerLevel p_24844_, Villager p_24845_)
private void
eraseMemories(Villager p_24866_)
private boolean
nearbyWantsJobsite(PoiType p_24862_, Villager p_24863_, BlockPos p_24864_)
protected void
start(ServerLevel p_24847_, Villager p_24848_, long p_24849_)
private void
yieldJobSite(ServerLevel p_24851_, Villager p_24852_, Villager p_24853_, BlockPos p_24854_, boolean p_24855_)
Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
speedModifier
private final float speedModifier
-
-
Constructor Details
-
YieldJobSite
public YieldJobSite(float p_24835_)
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<Villager>
-
start
-
nearbyWantsJobsite
-
yieldJobSite
private void yieldJobSite(ServerLevel p_24851_, Villager p_24852_, Villager p_24853_, BlockPos p_24854_, boolean p_24855_) -
canReachPos
-
eraseMemories
-