SchedulerWrapper

This class is used for when code needs to be executed in a specific thread context. It allows for Folia servers to have code executed in the correct scheduler while providing compatibility for Paper / Spigot servers without needing to use different methods per server type

Author

stumper66

Since

3.11.0

Constructors

Link copied to clipboard
constructor(runnable: Runnable)
constructor(entity: Entity?)
constructor(entity: Entity?, runnable: Runnable)

Properties

Link copied to clipboard
var entity: Entity?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun run()
Link copied to clipboard
fun runDelayed(delayInTicks: Long): SchedulerResult
Link copied to clipboard
fun runTaskTimerAsynchronously(initialDelayMS: Long, repeatPeriodMS: Long): SchedulerResult