Class AcquirePoi.JitteredLinearRetry
java.lang.Object
net.minecraft.world.entity.ai.behavior.AcquirePoi.JitteredLinearRetry
- Enclosing class:
AcquirePoi
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate static final intprivate static final intprivate static final intprivate longprivate longprivate final RandomSource -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisStillValid(long timestamp) voidmarkAttempt(long timestamp) booleanshouldRetry(long timestamp) toString()
-
Field Details
-
MIN_INTERVAL_INCREASE
private static final int MIN_INTERVAL_INCREASE- See Also:
-
MAX_INTERVAL_INCREASE
private static final int MAX_INTERVAL_INCREASE- See Also:
-
MAX_RETRY_PATHFINDING_INTERVAL
private static final int MAX_RETRY_PATHFINDING_INTERVAL- See Also:
-
random
-
previousAttemptTimestamp
private long previousAttemptTimestamp -
nextScheduledAttemptTimestamp
private long nextScheduledAttemptTimestamp -
currentDelay
private int currentDelay
-
-
Constructor Details
-
JitteredLinearRetry
JitteredLinearRetry(RandomSource random, long timestamp)
-
-
Method Details