Class Cooldown
java.lang.Object
net.fateuhc.plugin.utilties.uhc.timers.api.Cooldown
The cooldown data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGet when the cooldown will expire.Get the amount of miliseconds left.longGet is the time has passed.longGet the time that is remaining.Get how many seconds are left.intGet the amount of seconds left.longgetStart()Get when the cooldown started.booleanHas the cooldown expired?
-
Constructor Details
-
Cooldown
public Cooldown()
-
-
Method Details
-
getStart
public long getStart()Get when the cooldown started.- Returns:
Long
-
getExpire
public long getExpire()Get when the cooldown will expire.- Returns:
Long
-
getSecondsFormat
Get how many seconds are left.- Returns:
DecimalFormat
-
getPassed
public long getPassed()Get is the time has passed.- Returns:
Long
-
getRemaining
public long getRemaining()Get the time that is remaining.- Returns:
Long
-
hasExpired
public boolean hasExpired()Has the cooldown expired?- Returns:
Boolean
-
getSecondsLeft
public int getSecondsLeft()Get the amount of seconds left.- Returns:
Integer
-
getMiliSecondsLeft
Get the amount of miliseconds left.- Returns:
String
-