-
Method Summary
Method to get the token of the request that is currently being reassigned
int
The current attempt to be reassigned.
int
Method to get the maximal ticks between retries.
int
Method to get the maximal amount of tries that is resolver attempts.
default boolean
Method to get an indication of reassignment.
void
Update the associated manager data that links this resolver to a manager.
Methods inherited from interface com.minecolonies.api.colony.requestsystem.resolver.IRequestResolver
attemptResolveRequest, canResolveRequest, getFollowupRequestForCompletion, getPriority, getRequestType, getSuitabilityMetric, isValid, onAssignedRequestBeingCancelled, onAssignedRequestCancelled, onColonyUpdate, onRequestAssigned, resolveRequest
Methods inherited from interface com.minecolonies.api.tileentities.ITickable
tick, tick
-
Method Details
-
updateManager
Update the associated manager data that links this resolver to a manager.
- Parameters:
manager - the new associated manager.
-
getMaximalTries
int getMaximalTries()
Method to get the maximal amount of tries that is resolver attempts.
- Returns:
- The maximal amount of tries.
-
getMaximalDelayBetweenRetriesInTicks
int getMaximalDelayBetweenRetriesInTicks()
Method to get the maximal ticks between retries.
- Returns:
- The maximal amount of ticks between retries.
-
getCurrentReassignmentAttempt
int getCurrentReassignmentAttempt()
The current attempt to be reassigned.
- Returns:
- The current attempt of reassignment. -1 if none is undertaken.
-
isReassigning
default boolean isReassigning()
Method to get an indication of reassignment.
- Returns:
- an indication of reassignment.
-
getCurrentlyBeingReassignedRequest
@Nullable
@Nullable IToken<?> getCurrentlyBeingReassignedRequest()
Method to get the token of the request that is currently being reassigned
- Returns:
- The token of the quest that is being reassigned, null if no reassignment is being performed.