Package top.girlkisser.lazuli.api.misc
Class TickScheduler
java.lang.Object
top.girlkisser.lazuli.api.misc.TickScheduler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TickSchedulerA tick scheduler for the client.static final TickSchedulerA tick scheduler for the server. -
Constructor Summary
ConstructorsConstructorDescriptionAllows you to schedule one-shot events that occur in some amount of ticks. -
Method Summary
Modifier and TypeMethodDescriptionvoidscheduleWork(int inTicks, Runnable runnable) Schedule a task to run ininTicksticks.voidtick()Ticks the scheduler.
-
Field Details
-
SERVER
A tick scheduler for the server. -
CLIENT
A tick scheduler for the client.
-
-
Constructor Details
-
TickScheduler
public TickScheduler()
-
-
Method Details
-
tick
@Internal public void tick() -
scheduleWork
Schedule a task to run ininTicksticks.- Parameters:
inTicks- The amount of ticks to wait until execution.runnable- The task to execute.
-