serializeInventory

open fun serializeInventory(inventory: Inventory): String(source)

Serialize an Inventory to a JSON string.

Return

the serialized JSON string

Parameters

inventory

the Inventory to be serialized


open fun serializeInventory(size: Int, items: Array<ItemStack>): String(source)

Serialize an Inventory to a JSON string.

Return

the serialized JSON string

Parameters

size

size of the Inventory

items

the ItemStacks in the Inventory