Interface WorldClock
- All Superinterfaces:
Keyed, Registerable<WorldClock>, Wrapper
@NullMarked
@AsOf("2.4.0")
public interface WorldClock
extends Wrapper, Keyed, Registerable<WorldClock>
A reference to a registered world clock.
- Since:
- 2.4.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionkey()The registry key this clock points at.static WorldClockof(ResourceKey key) Creates a reference to a registered world clock.static WorldClockCreates a reference to a registered world clock.Methods inherited from interface Registerable
registerMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Field Details
-
OVERWORLD
-
THE_END
-
-
Method Details
-
key
The registry key this clock points at. -
of
Creates a reference to a registered world clock.- Parameters:
key- the key of an entry in the world-clock registry- Returns:
- a reference to that world clock
- Since:
- 2.4.0
-
of
Creates a reference to a registered world clock.- Parameters:
key- the key of an entry in the world-clock registry- Returns:
- a reference to that world clock
- Since:
- 3.0.0
-