public final class InventorySerialization extends Object
| Modifier and Type | Method and Description |
|---|---|
static Inventory |
decodeInventory(byte[] buf,
String title) |
static Inventory |
decodeInventory(String data,
String title) |
static ItemStack |
decodeItemStack(byte[] buf) |
static ItemStack |
decodeItemStack(String data) |
static ItemStack[] |
decodeItemStacks(byte[] buf) |
static ItemStack[] |
decodeItemStacks(String data) |
static byte[] |
encodeInventory(Inventory inventory) |
static String |
encodeInventoryToString(Inventory inventory) |
static byte[] |
encodeItemStack(ItemStack item) |
static byte[] |
encodeItemStacks(ItemStack[] items) |
static String |
encodeItemStacksToString(ItemStack[] items) |
static String |
encodeItemStackToString(ItemStack item) |
public static byte[] encodeItemStack(ItemStack item)
public static ItemStack decodeItemStack(byte[] buf)
public static byte[] encodeItemStacks(ItemStack[] items)
public static ItemStack[] decodeItemStacks(byte[] buf)
public static byte[] encodeInventory(Inventory inventory)
Copyright © 2020. All rights reserved.