WorldBorderBuilder

DSL builder for configuring a world border sent to a player.

Properties

Link copied to clipboard
abstract var centerX: Double

The X coordinate of the border center.

Link copied to clipboard
abstract var centerZ: Double

The Z coordinate of the border center.

Link copied to clipboard
abstract var damageAmount: Double

The damage per block for players outside the border.

Link copied to clipboard
abstract var damageBuffer: Double

The distance from the border at which damage begins.

Link copied to clipboard
abstract var size: Double

The diameter of the border.

Link copied to clipboard
abstract var warningDistance: Int

The distance from the border at which the warning appears.

Link copied to clipboard
abstract var warningTime: Int

The time in seconds before the border reaches the player that the warning appears.

Functions

Link copied to clipboard
abstract fun center(location: Location)

Sets the center of the world border.