Skip to content

Scheduler

Hakan Kargın edited this page Apr 19, 2022 · 3 revisions

How To Use

Scheduler System

This feature allows you to easily create sync/async schedulers.

Example

HCore.syncScheduler().every(1) // creates an sync scheduler which works on every 1 tick
    .run(() -> System.out.println("This works on every 1 tick.")); // trigger


HCore.asyncScheduler().every(1) // creates an async scheduler which works on every 1 tick
    .run(() -> System.out.println("This works on every 1 tick. That's async")); // trigger
Clone this wiki locally