public abstract class AbstractInventory<T extends NegativityHolder> extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
AbstractInventory.NegativityInventory  | 
| Modifier and Type | Field and Description | 
|---|---|
static List<AbstractInventory<?>> | 
INVENTORIES  | 
| Constructor and Description | 
|---|
AbstractInventory(AbstractInventory.NegativityInventory type,
                 Class<T> holderExample)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
actualizeInventory(Player p,
                  Object... args)
Actualize inventory
 Same as  
openInventory(com.elikill58.negativity.api.entity.Player, java.lang.Object...), args can be required | 
void | 
closeInventory(Player p,
              InventoryCloseEvent e)
Event when the inventory is closed. 
 | 
AbstractInventory.NegativityInventory | 
getType()
The Negativity inventory type 
 | 
boolean | 
isInstance(NegativityHolder nh)
Check if the given inventory holder instance of this inventory holder 
 | 
void | 
load()
Load inventory informations
 To allow reload 
 | 
abstract void | 
manageInventory(InventoryClickEvent e,
               Material m,
               Player p,
               T nh)
Event called when click and already checked
 (Check done: item/Inventory exist, available slot) 
 | 
abstract void | 
openInventory(Player p,
             Object... args)
Open the inventory to the specified player. 
 | 
public static final List<AbstractInventory<?>> INVENTORIES
public AbstractInventory(AbstractInventory.NegativityInventory type, Class<T> holderExample)
public AbstractInventory.NegativityInventory getType()
public boolean isInstance(NegativityHolder nh)
nh - the holder to checkpublic void load()
public abstract void openInventory(Player p, Object... args)
p - the player that will see the inventoryargs - if there is something requiredpublic void closeInventory(Player p, InventoryCloseEvent e)
p - the player which say ite - the called inventorypublic abstract void manageInventory(InventoryClickEvent e, Material m, Player p, T nh)
e - the called eventm - the material of the clicked itemp - the playernh - the holderpublic void actualizeInventory(Player p, Object... args)
openInventory(com.elikill58.negativity.api.entity.Player, java.lang.Object...), args can be requiredp - the player which see the inventoryargs - the args