Class TaskTime

java.lang.Object
me.hsgamer.hscore.bukkit.scheduler.TaskTime

public class TaskTime extends Object
The time for the task
  • Method Details

    • of

      public static TaskTime of(long time, TimeUnit unit)
      Create a new task time
      Parameters:
      time - the time
      unit - the unit
      Returns:
      the task time
    • of

      public static TaskTime of(long ticks)
      Create a new task time from ticks
      Parameters:
      ticks - the ticks
      Returns:
      the task time
    • getTime

      public long getTime()
      Get the time
      Returns:
      the time
    • getUnit

      public TimeUnit getUnit()
      Get the unit
      Returns:
      the unit
    • getTicks

      public long getTicks()
      Get the ticks
      Returns:
      the ticks
    • getNormalizedTicks

      public long getNormalizedTicks()
      Get the normalized ticks. This will return 1 if the ticks are less than 1.
      Returns:
      the normalized ticks