Skip to content

v2.4.0 for mc 1.20.1

Choose a tag to compare

@kamkeyke kamkeyke released this 10 Mar 01:50

Added

  • New ServerScheduler#schedule overload that accepts an optional owner tag for cancelling purposes.
  • ServerScheduler#cancelAllWithOwner to allow bulk cancellation of specific tasks.
  • Tasks are now cancellable.

Changed

  • Revamped ServerScheduler to prevent ConcurrentModificationException:
    • 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.Internal to prevent external usage.
  • Little Javadoc change.

Important

The ServerScheduler class is still under development and may undergo further changes!