Package kr.toxicity.model.api.platform
Interface PlatformRegionHolder
- All Known Subinterfaces:
PlatformEntity,PlatformLivingEntity,PlatformLocation,PlatformPlayer
public interface 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
-
Method Details
-
task
Schedules a task to run on the next tick, synchronized with this region holder.- Parameters:
runnable- the task to run- Returns:
- the scheduled task, or null if scheduling failed
- Since:
- 2.0.0
-
taskLater
Schedules a task to run after a delay, synchronized with this region holder.- Parameters:
delay- the delay in ticksrunnable- the task to run- Returns:
- the scheduled task, or null if scheduling failed
- Since:
- 2.0.0
-