time

fun World.time(time: Long)

Sets the time of the world using a DSL-style edit block.

This is a convenient extension function that wraps the world edit DSL to set the world time.

Parameters

time

The time to set, in ticks (0-24000 where 0 is sunrise, 6000 is noon, 12000 is sunset, 18000 is midnight).

Example usage:

world.time(6000L) // Set time to noon

Equivalent to:

world.edit {
this.time = 6000L
}