PlatformRegionHolder

Represents an object that holds a region context (e.g., an entity or location) for task scheduling.

This interface is crucial for platforms like Folia where tasks must be scheduled relative to a specific region.

Since

2.0.0

Inheritors

Functions

Link copied to clipboard
@Nullable
abstract fun task(@NotNull runnable: @NotNull Runnable): @Nullable ModelTask
Schedules a task to run on the next tick, synchronized with this region holder.
Link copied to clipboard
@Nullable
abstract fun taskLater(delay: Long, @NotNull runnable: @NotNull Runnable): @Nullable ModelTask
Schedules a task to run after a delay, synchronized with this region holder.