SurfBukkitApi

@ApiStatus.NonExtendable
interface SurfBukkitApi : SurfCoreApi

Represents the API for SurfBukkit.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun createScoreboard(title: Component): SurfScoreboardBuilder

Creates a SurfScoreboardBuilder with the given title.

Link copied to clipboard
abstract fun getPlayer(playerUuid: UUID): Any?
Link copied to clipboard
abstract fun scoreboardLibrary(): ScoreboardLibrary
Link copied to clipboard
open fun sendPlayerToServer(player: Player, server: String)

Sends a player to a specified server.

abstract fun sendPlayerToServer(playerUuid: UUID, server: String)
Link copied to clipboard
abstract suspend fun skipTimeSmoothly(skipOperation: SkipOperations.SkipOperation): Map<World, TimeSkipResult>

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

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

Skips time smoothly in the specified worlds.

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.

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

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

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.

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.