Class LookAndFollowTradingPlayerSink
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<Villager>
net.minecraft.world.entity.ai.behavior.LookAndFollowTradingPlayerSink
-
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 TypeMethodDescriptionprotected boolean
canStillUse(ServerLevel p_23448_, Villager p_23449_, long p_23450_)
protected boolean
checkExtraStartConditions(ServerLevel p_23445_, Villager p_23446_)
private void
followPlayer(Villager p_23452_)
protected void
start(ServerLevel p_23458_, Villager p_23459_, long p_23460_)
protected void
stop(ServerLevel p_23466_, Villager p_23467_, long p_23468_)
protected void
tick(ServerLevel p_23474_, Villager p_23475_, long p_23476_)
protected boolean
timedOut(long p_23436_)
-
Field Details
-
speedModifier
private final float speedModifier
-
-
Constructor Details
-
LookAndFollowTradingPlayerSink
public LookAndFollowTradingPlayerSink(float p_23434_)
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<Villager>
-
canStillUse
- Overrides:
canStillUse
in classBehavior<Villager>
-
start
-
stop
-
tick
-
timedOut
protected boolean timedOut(long p_23436_) -
followPlayer
-