-
Notifications
You must be signed in to change notification settings - Fork 0
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)
val encodedString = itemStack.asString()
val itemStack = encodedString.asItemStack()
val encodedInventory = inventory.asString()
val inventory = encodedInventory.asInventory()
val encodedLocation = location.asString()
val location = encodedLocation.asLocation()