Skip to content

Encoding

RedMagic edited this page Apr 23, 2024 · 1 revision

More info and source code click here

We also have a easy and simple way for changing spigot objects to a string and back. This can be used to save the objects. (See below)

ItemStack

Source

val encodedString = itemStack.asString()

val itemStack = encodedString.asItemStack()

Inventory

Source

val encodedInventory = inventory.asString()
        
val inventory = encodedInventory.asInventory()

Location

Source

val encodedLocation = location.asString()
        
val location = encodedLocation.asLocation()
Clone this wiki locally