Interface ClockAdjustment
- All Known Implementing Classes:
ClockAdjustment.Absolute, ClockAdjustment.Marker, ClockAdjustment.Relative
public sealed interface ClockAdjustment
permits ClockAdjustment.Absolute, ClockAdjustment.Relative, ClockAdjustment.Marker
This models how the current time of a clock is to be adjusted.
It's used in events to express the desired adjustment as a data model so other event listeners can inspect and further change it.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic final recordstatic final record -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ServerClockManager clockManager, Holder<WorldClock> clock)
-
Method Details
-
apply
-