Class WorldClock
java.lang.Object
io.github.protasm.jvmud.engine.time.WorldClock
- All Implemented Interfaces:
AutoCloseable
Advances deterministic world time from wall-clock time for a hosted world.
-
Constructor Summary
ConstructorsConstructorDescriptionWorldClock(WorldRuntime worldRuntime, Duration tickInterval) WorldClock(Runnable tick, Duration tickInterval) -
Method Summary
-
Constructor Details
-
WorldClock
-
WorldClock
-
-
Method Details
-
start
public void start() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-