EnvironmentBuilder

class EnvironmentBuilder(player: Player)

DSL builder for sending fake environment effects to a Player.

Obtain an instance via the Player.environment extension function.

Parameters

player

The target player for all operations in this builder.

Constructors

Link copied to clipboard
constructor(player: Player)

Functions

Link copied to clipboard
fun biome(biomeKey: String)

Sends a fake biome override to the player.

Link copied to clipboard

Resets the player's world border to the server's actual world border.

Link copied to clipboard
fun time(time: Long, locked: Boolean = false)

Sends a fake time update to the player.

Link copied to clipboard
fun weather(rain: Boolean, thunder: Boolean = false)

Sends a fake weather state to the player.

Link copied to clipboard
fun weatherLevel(rainLevel: Float, thunderLevel: Float = 0.0f)

Sets the rain and thunder intensity levels for the player.

Link copied to clipboard

Sends a fake world border configuration to the player.