public final class InventoryPanel extends Object
| Modifier and Type | Method and Description | 
|---|---|
void | 
click(Player p,
     int slot)
Called when a player clicks a  
MenuIcon inside of an
 InventoryPanel | 
String | 
getName()
Returns the name/title used for the  
Inventory in this panel | 
String | 
getSeed()
Returns the seed relevant to this specific panel 
 | 
String | 
getSerializedName()
Returns the serialized name for this panel 
 | 
void | 
linkIcon(MenuIcon icon)
Links this panel to the passed  
MenuIcon such that clicking it
 will open this panel | 
MenuIcon | 
newIcon(ItemStack item,
       Execution onExec)
Returns a new  
MenuIcon stored in this panel | 
MenuIcon | 
newIcon(ItemStack item,
       Execution onExec,
       Map<String,Object> options)
Returns a new  
MenuIcon stored in this panel | 
void | 
open(Player p)
Opens this  
InventoryPanel for the passed Player | 
void | 
setAllExecutions(Execution onExec)
 | 
InventoryPanel | 
setSerializedName(String name)
Sets the serialized name for this panel 
 | 
public MenuIcon newIcon(ItemStack item, Execution onExec, Map<String,Object> options)
MenuIcon stored in this panelpublic MenuIcon newIcon(ItemStack item, Execution onExec)
MenuIcon stored in this panelpublic void linkIcon(MenuIcon icon)
MenuIcon such that clicking it
 will open this panelicon - The MenuIcon to linkInventoryInterface.linkPanel(MenuIcon, InventoryPanel)public void setAllExecutions(Execution onExec)
onExec - The Execution to setpublic String getSeed()
public void click(Player p, int slot)
MenuIcon inside of an
 InventoryPanelp - The Player who clickedslot - The slot that was clickedpublic void open(Player p)
InventoryPanel for the passed Playerp - The Player to open this panel forpublic InventoryPanel setSerializedName(String name)
name - The name to setpublic String getSerializedName()
Copyright © 2017. All rights reserved.