Package org.spongepowered.api.util
Interface Ticks.Factory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Ticks
minecraftDay()
Ticks
minecraftHour()
Ticks
of(long ticks)
Ticks
ofMinecraftHours(Engine engine, long time)
Ticks
ofMinecraftSeconds(Engine engine, long time)
Ticks
ofWallClockTime(Engine engine, long time, java.time.temporal.TemporalUnit temporalUnit)
Ticks
single()
Ticks
zero()
-
-
-
Method Detail
-
of
Ticks of(long ticks)
- Parameters:
ticks
- The number of ticks- Returns:
- A
Ticks
object that represents the number of ticks. - See Also:
Ticks.of(long)
-
ofWallClockTime
Ticks ofWallClockTime(Engine engine, long time, java.time.temporal.TemporalUnit temporalUnit)
- Parameters:
engine
- TheEngine
to calculate the number of ticks fortime
- The timetemporalUnit
- TheTemporalUnit
of time given intime
.- Returns:
- The
Ticks
that 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
- TheEngine
to calculate the number of ticks fortime
- The number of minecraft seconds- Returns:
- The
Ticks
that 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
- TheEngine
to calculate the number of ticks fortime
- The number of minecraft hours- Returns:
- The
Ticks
that 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()
-
-