public abstract class Inventory extends Object implements NegativityObject
| Modifier and Type | Field and Description | 
|---|---|
static String | 
ADMIN_MENU  | 
static String | 
BAN_MANAGER_MENU  | 
static String | 
CHEAT_MANAGER  | 
static ItemStack | 
DYE_GRAY  | 
static ItemStack | 
DYE_GREEN  | 
static ItemStack | 
EMPTY  | 
static ItemStack | 
EMPTY_RED  | 
static String | 
NAME_ACTIVED_CHEAT_MENU  | 
static String | 
NAME_CHECK_MENU  | 
static String | 
NAME_FORGE_MOD_MENU  | 
static String | 
NAME_FREEZE_MENU  | 
static String | 
NAME_MOD_MENU  | 
static String | 
SPECIAL_MANAGER  | 
| Constructor and Description | 
|---|
Inventory()  | 
| Modifier and Type | Method and Description | 
|---|---|
abstract void | 
addItem(ItemStack build)
Add an item at the first available slot 
 | 
abstract void | 
clear()
Remove all content of the inventory 
 | 
abstract boolean | 
contains(Material type)
Check if the current inventory contains at least one item with this material 
 | 
static Inventory | 
createInventory(String inventoryName,
               int size,
               NegativityHolder holder)
Create an inventory according to the specific platform 
 | 
abstract @Nullable ItemStack | 
get(int slot)
Get the item in the inventory at the given slot 
 | 
static ItemStack | 
getBackItem(Player p)  | 
static ItemStack | 
getCloseItem(Player p)  | 
abstract @Nullable PlatformHolder | 
getHolder()
Get the platform holder. 
 | 
abstract String | 
getInventoryName()
Get the inventory name 
 | 
abstract int | 
getSize()
Get the size of the inventory 
 | 
abstract InventoryType | 
getType()
Get the inventory type 
 | 
abstract void | 
remove(int slot)
Remove item at the given slot (Can also be used if you set a null item at the
 given slot) 
 | 
abstract void | 
set(int slot,
   ItemStack item)
Set a new item to the given slot 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultpublic static final String NAME_CHECK_MENU
public static final String ADMIN_MENU
public static final String NAME_ACTIVED_CHEAT_MENU
public static final String NAME_FREEZE_MENU
public static final String BAN_MANAGER_MENU
public static final String NAME_MOD_MENU
public static final String CHEAT_MANAGER
public static final String SPECIAL_MANAGER
public static final String NAME_FORGE_MOD_MENU
public static final ItemStack EMPTY
public static final ItemStack EMPTY_RED
public static final ItemStack DYE_GRAY
public static final ItemStack DYE_GREEN
public abstract InventoryType getType()
public abstract @Nullable ItemStack get(int slot)
slot - the slot where we will search the itempublic abstract void set(int slot,
                         ItemStack item)
slot - the slot of the itemitem - the new itempublic abstract void remove(int slot)
slot - the removed item slotpublic abstract void clear()
public abstract void addItem(ItemStack build)
build - the new itempublic abstract boolean contains(Material type)
type - the search typepublic abstract int getSize()
public abstract String getInventoryName()
public abstract @Nullable PlatformHolder getHolder()
NegativityHolder if it's a Negativity
 inventory.public static Inventory createInventory(String inventoryName, int size, NegativityHolder holder)
inventoryName - the name of the inventorysize - the size of the inventoryholder - the negativity holder that will be applied to the inventory