Serialization

open class Serialization(source)

A utility class for serializing and deserializing Minecraft inventories.

Functions

Link copied to clipboard
open fun deserializeInventory(jsons: String, settingsManager: SettingsManager): Inventory
open fun deserializeInventory(jsons: String, title: String, settingsManager: SettingsManager): Inventory
Deserialize an Inventory from a JSON string.
Link copied to clipboard
open fun serializeInventory(inventory: Inventory): String
open fun serializeInventory(size: Int, items: Array<ItemStack>): String
Serialize an Inventory to a JSON string.