SimpleLocation

data class SimpleLocation(val world: String, val x: Double, val y: Double, val z: Double, val yaw: Float, val pitch: Float) : MessageTagProvider

Represents a Location that references a org.bukkit.World by name.

Constructors

Link copied to clipboard
constructor(world: String, x: Double, y: Double, z: Double, yaw: Float, pitch: Float)

Properties

Link copied to clipboard

The pitch.

Link copied to clipboard

The name of the world.

Link copied to clipboard
val x: Double

The x coordinate.

Link copied to clipboard
val y: Double

The y coordinate.

Link copied to clipboard
val yaw: Float

The yaw.

Link copied to clipboard
val z: Double

The z coordinate.

Functions

Link copied to clipboard
open override fun getMessageTags(): List<CustomTag>
fun getMessageTags(decimalPlaces: Int): List<CustomTag>
Link copied to clipboard
open fun getTagProviders(): List<Any>
Link copied to clipboard
fun toLocation(): Location

Turns a SimpleLocation into a Location.

fun toLocation(world: World): Location

Turns a SimpleLocation into a Location for the given world.

Link copied to clipboard