Class InventorySerialization
- java.lang.Object
-
- me.syncwrld.booter.minecraft.serialization.InventorySerialization
-
public final class InventorySerialization extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.bukkit.inventory.Inventory
decodeInventory(byte[] buf, java.lang.String title)
static org.bukkit.inventory.Inventory
decodeInventory(java.lang.String data, java.lang.String title)
static org.bukkit.inventory.ItemStack
decodeItemStack(byte[] buf)
static org.bukkit.inventory.ItemStack
decodeItemStack(java.lang.String data)
static org.bukkit.inventory.ItemStack[]
decodeItemStacks(byte[] buf)
static org.bukkit.inventory.ItemStack[]
decodeItemStacks(java.lang.String data)
static byte[]
encodeInventory(org.bukkit.inventory.Inventory inventory)
static java.lang.String
encodeInventoryToString(org.bukkit.inventory.Inventory inventory)
static byte[]
encodeItemStack(org.bukkit.inventory.ItemStack item)
static byte[]
encodeItemStacks(org.bukkit.inventory.ItemStack[] items)
static java.lang.String
encodeItemStacksToString(org.bukkit.inventory.ItemStack[] items)
static java.lang.String
encodeItemStackToString(org.bukkit.inventory.ItemStack item)
-
-
-
Method Detail
-
encodeItemStack
public static byte[] encodeItemStack(org.bukkit.inventory.ItemStack item)
-
encodeItemStackToString
public static java.lang.String encodeItemStackToString(org.bukkit.inventory.ItemStack item)
-
decodeItemStack
public static org.bukkit.inventory.ItemStack decodeItemStack(byte[] buf)
-
decodeItemStack
public static org.bukkit.inventory.ItemStack decodeItemStack(java.lang.String data)
-
encodeItemStacks
public static byte[] encodeItemStacks(org.bukkit.inventory.ItemStack[] items)
-
encodeItemStacksToString
public static java.lang.String encodeItemStacksToString(org.bukkit.inventory.ItemStack[] items)
-
decodeItemStacks
public static org.bukkit.inventory.ItemStack[] decodeItemStacks(byte[] buf)
-
decodeItemStacks
public static org.bukkit.inventory.ItemStack[] decodeItemStacks(java.lang.String data)
-
encodeInventory
public static byte[] encodeInventory(org.bukkit.inventory.Inventory inventory)
-
encodeInventoryToString
public static java.lang.String encodeInventoryToString(org.bukkit.inventory.Inventory inventory)
-
decodeInventory
public static org.bukkit.inventory.Inventory decodeInventory(byte[] buf, java.lang.String title)
-
decodeInventory
public static org.bukkit.inventory.Inventory decodeInventory(java.lang.String data, java.lang.String title)
-
-