onChunk

abstract fun onChunk(world: World, chunkX: Int, chunkZ: Int): SchedulingContext
open fun onChunk(world: World, position: IVec2): SchedulingContext

Runs a task on a specific chunk, specified by its X and Z coordinates.

This does not guarantee that the chunk is loaded.


open fun onChunk(location: Location): SchedulingContext

Runs a task on a specific chunk, specified by a location.

This does not guarantee that the chunk is loaded.


open fun onChunk(world: World, position: Position): SchedulingContext

Runs a task on a specific chunk, specified by a position.

This does not guarantee that the chunk is loaded.


open fun onChunk(world: World, position: DVec3): SchedulingContext

Runs a task on a specific chunk, specified by a world position's X, Y, Z coordinates.

This does not guarantee that the chunk is loaded.


open fun onChunk(chunk: Chunk): SchedulingContext

Runs a task on a specific chunk.

This does not guarantee that the chunk is loaded.