Class SchedulerUtils
java.lang.Object
me.emafire003.dev.particleanimationlib.util.scheduler.SchedulerUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final classUsed to schedule the replacements -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidonServerTick(net.minecraftforge.event.TickEvent.ServerTickEvent event) static voidrunEveryTick(ServerTickRunnable action) Runs an action every tick and provides the tick count with an optional start delay.static voidrunLater(int delayTicks, ServerRunnable action)
-
Constructor Details
-
SchedulerUtils
public SchedulerUtils()
-
-
Method Details
-
onServerTick
public static void onServerTick(net.minecraftforge.event.TickEvent.ServerTickEvent event) -
runLater
-
runEveryTick
Runs an action every tick and provides the tick count with an optional start delay. If the action lambda returns a falls the task is stopepd
-