java.lang.Object
net.fateuhc.plugin.utilties.uhc.timers.api.Cooldown

public class Cooldown extends Object
The cooldown data.
  • 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

      public DecimalFormat 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

      public String getMiliSecondsLeft()
      Get the amount of miliseconds left.
      Returns:
      String