Interface Clock
public sealed interface Clock
-
Method Summary
Modifier and TypeMethodDescriptionclock()voidpause()booleanpaused()floatrate()Gets the rate at which the clock advances per tick, in partial ticks.voidrate(float rate) Sets the rate at which the clock advances per tick, in partial ticks.voidresume()longtime()Returns the current time (in ticks).voidtime(long time) Sets the current time (in ticks).
-
Method Details
-
clock
RegistryKey<WorldClock> clock() -
rate
float rate()Gets the rate at which the clock advances per tick, in partial ticks.
The default is 1 (advance one tick per tick).
-
rate
void rate(float rate) Sets the rate at which the clock advances per tick, in partial ticks.
The default is 1 (advance one tick per tick).
-
time
long time()Returns the current time (in ticks). -
time
void time(long time) Sets the current time (in ticks). -
paused
boolean paused() -
pause
void pause() -
resume
void resume()
-