Package-level declarations

Contains position classes which are more simple or special and therefore fitting for specific use cases

Types

Link copied to clipboard
Link copied to clipboard
@Serializable
sealed interface IPos<N : Number>

Base interface for position class implementations.

Link copied to clipboard
@Serializable
@SerialName(value = "pos2d")
data class Pos2d(val x: Double, val z: Double) : Pos2DimensionalConvertible<Double, Pos3d, Pos2d>

A simple class representing a pair of x and z (being 2-dimensional double coordinates). As y would be the height in Minecraft, this two-dimensional class does not contain a y value.

Link copied to clipboard
@Serializable
sealed interface Pos2Dimensional<N : Number> : IPos<N>
Link copied to clipboard
@Serializable
@SerialName(value = "pos2f")
data class Pos2f(val x: Float, val z: Float) : Pos2DimensionalConvertible<Float, Pos3f, Pos2f>

A simple class representing a pair of x and z (being 2-dimensional floating point coordinates). As y would be the height in Minecraft, this two-dimensional class does not contain a y value.

Link copied to clipboard
@Serializable
@SerialName(value = "pos2i")
data class Pos2i(val x: Int, val z: Int) : Pos2DimensionalConvertible<Int, Pos3i, Pos2i>

A simple class representing a pair of x and z (being 2-dimensional integer coordinates). As y would be the height in Minecraft, this two-dimensional class does not contain a y value.

Link copied to clipboard
@Serializable
@SerialName(value = "pos3d")
data class Pos3d(val x: Double, val y: Double, val z: Double) : Pos3DimensionalConvertible<Double, Pos2d, Pos3d>

A class representing a triple of x, y and z (being 3-dimensional double coordinates), where y is the height in Minecraft.

Link copied to clipboard
@Serializable
sealed interface Pos3Dimensional<N : Number> : IPos<N>
Link copied to clipboard
@Serializable
@SerialName(value = "pos3f")
data class Pos3f(val x: Float, val y: Float, val z: Float) : Pos3DimensionalConvertible<Float, Pos2f, Pos3f>

A class representing a triple of x, y and z (being 3-dimensional floating point coordinates), where y is the height in Minecraft.

Link copied to clipboard
@Serializable
@SerialName(value = "pos3i")
data class Pos3i(val x: Int, val y: Int, val z: Int) : Pos3DimensionalConvertible<Int, Pos2i, Pos3i>

A class representing a triple of x, y and z (being 3-dimensional integer coordinates), where y is the height in Minecraft.

Link copied to clipboard
data class PosInChunk(val x: Int, val y: Int, val z: Int)
Link copied to clipboard
@Serializable
data class SilkPosition(val x: Double = 0.0, val y: Double = 0.0, val z: Double = 0.0, val worldIdentifier: ResourceLocation? = null, val pitch: Float = 0.0f, val yaw: Float = 0.0f)

A class which can be initialized with all kinds of positions and has the ability to convert them to nearly every other kind of position.