Constructor and Description |
---|
InventoryManager() |
Modifier and Type | Method and Description |
---|---|
static Optional<AbstractInventory<?>> |
getInventory(AbstractInventory.NegativityInventory type) |
void |
onInventoryClick(InventoryClickEvent e) |
static void |
open(AbstractInventory.NegativityInventory type,
Player p,
Object... args)
Open the negativity inventory of the given type
Does nothing if the inventory is not found
|
public void onInventoryClick(InventoryClickEvent e)
public static Optional<AbstractInventory<?>> getInventory(AbstractInventory.NegativityInventory type)
public static void open(AbstractInventory.NegativityInventory type, Player p, Object... args)
type
- the type of the ivnetnory which have to be showedp
- the player that have to see the inventoryargs
- the arguments to open the inventory