EnvironmentHub

interface EnvironmentHub

Hub interface for packet-based environment manipulation.

Provides methods to send fake weather, time, biome, and world border updates to individual players without affecting the actual server state.

Inheritors

Functions

Link copied to clipboard
abstract fun resetWorldBorder(player: Player)

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

Link copied to clipboard
abstract fun sendWorldBorder(player: Player, builder: WorldBorderBuilder.() -> Unit)

Sends a world border update packet to the player.

Link copied to clipboard
abstract fun setFakeBiome(player: Player, biomeKey: String)

Sends a fake biome override to the player for their current chunk.

Link copied to clipboard
abstract fun setFakeTime(player: Player, time: Long, locked: Boolean = false)

Sends a fake time update to the player.

Link copied to clipboard
abstract fun setFakeWeather(player: Player, rain: Boolean, thunder: Boolean)

Sends a fake weather state to the player.

Link copied to clipboard
abstract fun setFakeWorldBorder(player: Player, builder: FakeWorldBorderBuilder.() -> Unit)

Sends a fake world border configuration to the player.

Link copied to clipboard
abstract fun setWeatherLevel(player: Player, rainLevel: Float, thunderLevel: Float)

Sets the rain and thunder intensity levels for the player via packets.