Class AcquirePoi.JitteredLinearRetry
java.lang.Object
net.minecraft.world.entity.ai.behavior.AcquirePoi.JitteredLinearRetry
- Enclosing class:
- AcquirePoi
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private static int
private static int
private static int
private long
private long
private Random
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isStillValid(long p_22383_)
void
markAttempt(long p_22381_)
boolean
shouldRetry(long p_22385_)
toString()
-
Field Details
-
MIN_INTERVAL_INCREASE
private static final int MIN_INTERVAL_INCREASE- See Also:
- Constant Field Values
-
MAX_INTERVAL_INCREASE
private static final int MAX_INTERVAL_INCREASE- See Also:
- Constant Field Values
-
MAX_RETRY_PATHFINDING_INTERVAL
private static final int MAX_RETRY_PATHFINDING_INTERVAL- See Also:
- Constant Field Values
-
random
-
previousAttemptTimestamp
private long previousAttemptTimestamp -
nextScheduledAttemptTimestamp
private long nextScheduledAttemptTimestamp -
currentDelay
private int currentDelay
-
-
Constructor Details
-
JitteredLinearRetry
JitteredLinearRetry(Random p_22378_, long p_22379_)
-
-
Method Details