v2.4.0 for mc 1.20.1
Added
- New
ServerScheduler#scheduleoverload that accepts an optional owner tag for cancelling purposes. ServerScheduler#cancelAllWithOwnerto allow bulk cancellation of specific tasks.- Tasks are now cancellable.
Changed
- Revamped
ServerSchedulerto preventConcurrentModificationException:- Added a PENDING queue to synchronize task additions.
- Tasks scheduled during a tick now move to the active list at the start of the next tick.
- Centralized scheduling logic to strictly enforce non-negative tick values.
- Annotated example classes with
@ApiStatus.Internalto prevent external usage. - Little Javadoc change.
Important
The ServerScheduler class is still under development and may undergo further changes!