skipTimeSmoothly

abstract suspend fun skipTimeSmoothly(world: World, timeToAdd: Long): TimeSkipResult

Skips time smoothly in a given world by adding the specified amount of time. Suspends the coroutine until the time skip operation is complete.

Return

the TimeSkipResult

Parameters

world

the world in which to skip time

timeToAdd

the amount of time to add (in ticks)


abstract suspend fun skipTimeSmoothly(world: World, timeToAdd: Long, duration: Long): TimeSkipResult

Smoothly skips time in the specified world by adding the given time for the specified duration.

Return

a Result object representing the result of the time skip operation

Parameters

world

the world in which to skip time

timeToAdd

the amount of time to add

duration

the duration of the time skip operation


abstract suspend fun skipTimeSmoothly(world: World, skipOperation: SkipOperations.SkipOperation): TimeSkipResult

Smoothly skips time in the specified Minecraft world based on the given skip operation.

Return

A Result object that contains the result of the time skip operation.

Parameters

world

The Minecraft world in which to skip time.

skipOperation

The type of time skip operation to perform. Use one of the skip operation constants defined in the SkipOperations class.

See also

SkipOperations

abstract suspend fun skipTimeSmoothly(timeToAdd: Long): Map<World, TimeSkipResult>

Skips time smoothly in the specified worlds.

Return

a map containing the result of the time skip operation for each world, with the world as the key and the result as the value

Parameters

timeToAdd

the amount of time to add to each world


abstract suspend fun skipTimeSmoothly(timeToAdd: Long, duration: Long): Map<World, TimeSkipResult>

Skip time smoothly by adding a specified amount of time to each world for a given duration.

Return

a map containing the results of the time skip operation for each world, where the key is the world and the value is the result of the operation

Parameters

timeToAdd

the amount of time to add to each world

duration

the duration of the time skip operation


abstract suspend fun skipTimeSmoothly(skipOperation: SkipOperations.SkipOperation): Map<World, TimeSkipResult>

Skips time smoothly in a Minecraft world based on the specified skip operation.

Return

A map associating each affected world with the result of the time skip operation. The result is represented by the < class.

Parameters

skipOperation

The skip operation to calculate the time interval to skip. It should implement the SkipOperations.SkipOperation functional interface.

See also

SkipOperations