CoordinateComponent

data class CoordinateComponent(val x: Int, val y: Int)

A coordinate in Crafting slots.

You can convert this for index(int) with the following expression. (x + y*9)

Zero origin

Since

5.0.0

Parameters

x

X coordinate

y

Y coordinate

Constructors

Link copied to clipboard
constructor(x: Int, y: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val x: Int
Link copied to clipboard
val y: Int

Functions

Link copied to clipboard
fun toIndex(): Int

returns a calculated index from a coordinate.