Companion

object Companion

Properties

Link copied to clipboard
val CODEC: Codec<Key>

The codec of this class.

Functions

Link copied to clipboard
fun minecraft(value: String): Key

Creates a key in the minecraft namespace.

Link copied to clipboard
fun of(string: String): Key

Attempts to read a key from a string. This may throw exceptions.

Link copied to clipboard
fun read(string: String): DataResult<Key>

Attempts to read a key from an input string, returning an error if it failed.