Class SpigotTimeConverter

java.lang.Object
com.plotsquared.bukkit.util.task.SpigotTimeConverter
All Implemented Interfaces:
com.plotsquared.core.util.task.TaskTime.TimeConverter

public final class SpigotTimeConverter extends Object implements com.plotsquared.core.util.task.TaskTime.TimeConverter
Naive time converter that assumes that all ticks are 50 milliseconds
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    msToTicks(@org.checkerframework.checker.index.qual.NonNegative long ms)
     
    long
    ticksToMs(@org.checkerframework.checker.index.qual.NonNegative long ticks)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.plotsquared.core.util.task.TaskTime.TimeConverter

    toMs, toTicks
  • Constructor Details

    • SpigotTimeConverter

      public SpigotTimeConverter()
  • Method Details

    • msToTicks

      public long msToTicks(@org.checkerframework.checker.index.qual.NonNegative long ms)
      Specified by:
      msToTicks in interface com.plotsquared.core.util.task.TaskTime.TimeConverter
    • ticksToMs

      public long ticksToMs(@org.checkerframework.checker.index.qual.NonNegative long ticks)
      Specified by:
      ticksToMs in interface com.plotsquared.core.util.task.TaskTime.TimeConverter