public class SInventory extends Object implements org.bukkit.configuration.serialization.ConfigurationSerializable
| Modifier and Type | Field and Description |
|---|---|
protected List<org.bukkit.inventory.ItemStack> |
items
Represents a collection of the relevant inventory items
|
| Constructor and Description |
|---|
SInventory(org.bukkit.inventory.ItemStack... contents)
Copies the passed
ItemStack objects |
SInventory(Map<String,Object> config)
ConfigurationSerializable constructor. |
| Modifier and Type | Method and Description |
|---|---|
static SInventory |
deserialize(Map<String,Object> config)
Creates a new
SInventory object and returns it. |
List<org.bukkit.inventory.ItemStack> |
getContents()
Returns a copy of this instance's stored
ItemStacks |
org.bukkit.inventory.ItemStack[] |
getContentsAsArray()
Returns a copy of this instance's stored
ItemStacks |
Map<String,Object> |
serialize() |
static SInventory |
valueOf(Map<String,Object> config)
Creates a new
SInventory object and returns it. |
protected final List<org.bukkit.inventory.ItemStack> items
public SInventory(org.bukkit.inventory.ItemStack... contents)
ItemStack objectscontents - The ItemStacks to copypublic List<org.bukkit.inventory.ItemStack> getContents()
ItemStacksItemStackspublic org.bukkit.inventory.ItemStack[] getContentsAsArray()
ItemStacksItemStackspublic Map<String,Object> serialize()
serialize in interface org.bukkit.configuration.serialization.ConfigurationSerializablepublic static SInventory valueOf(Map<String,Object> config)
SInventory object and returns it. Should only be
used by Bukkitconfig - A serialized Map of this objectSInventory objectpublic static SInventory deserialize(Map<String,Object> config)
SInventory object and returns it. Should only be
used by Bukkitconfig - A serialized Map of this objectSInventory objectCopyright © 2015. All rights reserved.