Package ch.njol.skript.util
Class Timespan
java.lang.Object
ch.njol.skript.util.Timespan
- All Implemented Interfaces:
YggdrasilSerializable
,Comparable<Timespan>
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.njol.yggdrasil.YggdrasilSerializable
YggdrasilSerializable.YggdrasilExtendedSerializable, YggdrasilSerializable.YggdrasilRobustEnum, YggdrasilSerializable.YggdrasilRobustSerializable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
static Timespan
fromTicks(int ticks)
Deprecated.Use fromTicks_i(long ticks) instead.static Timespan
fromTicks_i(long ticks)
long
int
getTicks()
Deprecated.Use getTicks_i() instead.long
int
hashCode()
static @Nullable Timespan
toString()
toString(int flags)
static String
toString(long millis)
static String
toString(long millis, int flags)
-
Constructor Details
-
Timespan
public Timespan() -
Timespan
public Timespan(long millis)
-
-
Method Details
-
parse
-
fromTicks
Deprecated.Use fromTicks_i(long ticks) instead. Since this method limits timespan to 50 * Integer.MAX_VALUE. -
fromTicks_i
-
getMilliSeconds
public long getMilliSeconds() -
getTicks_i
public long getTicks_i() -
getTicks
Deprecated.Use getTicks_i() instead. Since this method limits timespan to Integer.MAX_VALUE. -
toString
-
toString
-
toString
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Timespan>
-
hashCode
public int hashCode() -
equals
-