Package org.spongepowered.api.util
Interface Ticks.Factory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TicksminecraftDay()TicksminecraftHour()Ticksof(long ticks)TicksofMinecraftHours(Engine engine, long time)TicksofMinecraftSeconds(Engine engine, long time)TicksofWallClockTime(Engine engine, long time, TemporalUnit temporalUnit)Tickssingle()Tickszero()
-
-
-
Method Detail
-
of
Ticks of(long ticks)
- Parameters:
ticks- The number of ticks- Returns:
- A
Ticksobject that represents the number of ticks. - See Also:
Ticks.of(long)
-
ofWallClockTime
Ticks ofWallClockTime(Engine engine, long time, TemporalUnit temporalUnit)
- 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:
(long, TemporalUnit)
-
ofMinecraftSeconds
Ticks ofMinecraftSeconds(Engine engine, long time)
- Parameters:
engine- TheEngineto calculate the number of ticks fortime- The number of minecraft seconds- Returns:
- The
Ticksthat represents the number of ticks that would be expected to be run in an ideal scenario. - See Also:
Ticks.ofMinecraftSeconds(Engine, long)
-
ofMinecraftHours
Ticks ofMinecraftHours(Engine engine, long time)
- Parameters:
engine- TheEngineto calculate the number of ticks fortime- The number of minecraft hours- Returns:
- The
Ticksthat represents the number of ticks that would be expected to be run in an ideal scenario. - See Also:
Ticks.ofMinecraftHours(Engine, long)
-
zero
Ticks zero()
- Returns:
- A
Ticks - See Also:
Ticks.zero()
-
single
Ticks single()
- Returns:
- A
Ticks - See Also:
Ticks.single()
-
minecraftHour
Ticks minecraftHour()
- Returns:
- A
Ticks - See Also:
Ticks.minecraftHour()
-
minecraftDay
Ticks minecraftDay()
- Returns:
- A
Ticks - See Also:
Ticks.minecraftDay()
-
-