Package us.talabrek.ultimateskyblock.api
Interface ChallengeCompletion
public interface ChallengeCompletion
Represents a challenge-completion.
- Since:
- 2.7.0
-
Method Summary
Modifier and TypeMethodDescriptionlong
How many milliseconds of the cooldown is leftlong
The timestamp at which the cooldown runs out.getName()
The name of the challenge.int
Total number of times the challenge has been completedint
Number of times the challenge has been completed within this cooldown.boolean
Whether or not the challenge is currently on cooldown.
-
Method Details
-
getName
String getName()The name of the challenge.- Returns:
- name of the challenge.
- Since:
- 2.7.0
-
getCooldownUntil
long getCooldownUntil()The timestamp at which the cooldown runs out.- Returns:
- The timestamp at which the cooldown runs out.
- Since:
- 2.7.0
-
isOnCooldown
boolean isOnCooldown()Whether or not the challenge is currently on cooldown.- Returns:
- Whether or not the challenge is currently on cooldown.
- Since:
- 2.7.0
-
getCooldownInMillis
long getCooldownInMillis()How many milliseconds of the cooldown is left- Returns:
- How many milliseconds of the cooldown is left
- Since:
- 2.7.0
-
getTimesCompleted
int getTimesCompleted()Total number of times the challenge has been completed- Returns:
- Total number of times the challenge has been completed
- Since:
- 2.7.0
-
getTimesCompletedInCooldown
int getTimesCompletedInCooldown()Number of times the challenge has been completed within this cooldown.- Returns:
- Number of times the challenge has been completed within this cooldown.
- Since:
- 2.7.0
-