Package org.spongepowered.api.util
Interface Ticks.Factory
- Enclosing interface:
Ticks
public static interface Ticks.Factory
Produces
Ticks objects.-
Method Summary
Modifier and TypeMethodDescriptioninfinite()of(long ticks) ofMinecraftHours(Engine engine, long time) ofMinecraftSeconds(Engine engine, long time) ofWallClockTime(Engine engine, long time, TemporalUnit temporalUnit) single()zero()
-
Method Details
-
of
- Parameters:
ticks- The number of ticks- Returns:
- A
Ticksobject that represents the number of ticks. - See Also:
-
ofWallClockTime
- Parameters:
engine- TheEngineto calculate the number of ticks fortime- The timetemporalUnit- TheTemporalUnitof time given intime.- Returns:
- The
Ticksthat represents the number of ticks that would be expected to be run on the given engine in an ideal scenario. - See Also:
-
ofMinecraftSeconds
-
ofMinecraftHours
-
zero
Ticks zero()- Returns:
- A
Ticks - See Also:
-
single
Ticks single()- Returns:
- A
Ticks - See Also:
-
minecraftHour
Ticks minecraftHour()- Returns:
- A
Ticks - See Also:
-
minecraftDay
Ticks minecraftDay()- Returns:
- A
Ticks - See Also:
-
infinite
Ticks infinite()- Returns:
- A
Ticks - See Also:
-