public class CheckMenuInventory extends AbstractInventory<CheckMenuHolder>
AbstractInventory.NegativityInventory
INVENTORIES
Constructor and Description |
---|
CheckMenuInventory() |
Modifier and Type | Method and Description |
---|---|
void |
actualizeInventory(Player p,
Object... args)
Actualize inventory
Same as
AbstractInventory.openInventory(com.elikill58.negativity.api.entity.Player, java.lang.Object...) , args can be required |
static ItemStack |
getClickItem(String name,
int clicks) |
static DyeColor |
getColorFromClick(int click) |
static Material |
getMaterialFromClick(int click) |
static ItemStack |
getWoolItem(Player player,
boolean b) |
void |
manageInventory(InventoryClickEvent e,
Material m,
Player p,
CheckMenuHolder nh)
Event called when click and already checked
(Check done: item/Inventory exist, available slot)
|
void |
openInventory(Player p,
Object... args)
Open the inventory to the specified player.
|
closeInventory, getType, isInstance, load
public void openInventory(Player p, Object... args)
AbstractInventory
openInventory
in class AbstractInventory<CheckMenuHolder>
p
- the player that will see the inventoryargs
- if there is something requiredpublic void actualizeInventory(Player p, Object... args)
AbstractInventory
AbstractInventory.openInventory(com.elikill58.negativity.api.entity.Player, java.lang.Object...)
, args can be requiredactualizeInventory
in class AbstractInventory<CheckMenuHolder>
p
- the player which see the inventoryargs
- the argspublic static Material getMaterialFromClick(int click)
public static DyeColor getColorFromClick(int click)
public void manageInventory(InventoryClickEvent e, Material m, Player p, CheckMenuHolder nh)
AbstractInventory
manageInventory
in class AbstractInventory<CheckMenuHolder>
e
- the called eventm
- the material of the clicked itemp
- the playernh
- the holder