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
DEFAULT_DURATION, 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
(Holder<PoiType> p_217511_, Villager p_217512_, BlockPos p_217513_) 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
-