Package net.kyori.adventure.util
Interface Ticks
public interface Ticks
Standard game tick utilities.
- Since:
- 4.0.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final long
A single tick duration, in milliseconds.static final int
The number of ticks that occur in one second. -
Method Summary
-
Field Details
-
TICKS_PER_SECOND
static final int TICKS_PER_SECONDThe number of ticks that occur in one second.- Since:
- 4.0.0
- See Also:
-
SINGLE_TICK_DURATION_MS
static final long SINGLE_TICK_DURATION_MSA single tick duration, in milliseconds.- Since:
- 4.0.0
- See Also:
-
-
Method Details
-
duration
Converts ticks into aDuration
.- Parameters:
ticks
- the number of ticks- Returns:
- a duration
- Since:
- 4.0.0
-