Class MoveToTargetSink
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<Mob>
net.minecraft.world.entity.ai.behavior.MoveToTargetSink
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate BlockPos
private static int
private Path
private int
private float
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canStillUse(ServerLevel p_23586_, Mob p_23587_, long p_23588_)
protected boolean
checkExtraStartConditions(ServerLevel p_23583_, Mob p_23584_)
private boolean
reachedTarget(Mob p_23590_, WalkTarget p_23591_)
protected void
start(ServerLevel p_23609_, Mob p_23610_, long p_23611_)
protected void
stop(ServerLevel p_23601_, Mob p_23602_, long p_23603_)
protected void
tick(ServerLevel p_23617_, Mob p_23618_, long p_23619_)
private boolean
tryComputePath(Mob p_23593_, WalkTarget p_23594_, long p_23595_)
-
Field Details
-
MAX_COOLDOWN_BEFORE_RETRYING
private static final int MAX_COOLDOWN_BEFORE_RETRYING- See Also:
- Constant Field Values
-
remainingCooldown
private int remainingCooldown -
path
-
lastTargetPos
-
speedModifier
private float speedModifier
-
-
Constructor Details
-
MoveToTargetSink
public MoveToTargetSink() -
MoveToTargetSink
public MoveToTargetSink(int p_23573_, int p_23574_)
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<Mob>
-
canStillUse
- Overrides:
canStillUse
in classBehavior<Mob>
-
stop
-
start
-
tick
-
tryComputePath
-
reachedTarget
-