Package me.hsgamer.bettergui.menu
Class BaseInventoryMenu<B extends ButtonMap>
- java.lang.Object
-
- me.hsgamer.bettergui.api.menu.Menu
-
- me.hsgamer.bettergui.api.menu.StandardMenu
-
- me.hsgamer.bettergui.menu.BaseMenu
-
- me.hsgamer.bettergui.menu.BaseInventoryMenu<B>
-
- Type Parameters:
B
- the type of theButtonMap
to use in theBukkitGUIHolder
- Direct Known Subclasses:
AddonMenu
,SimpleMenu
public abstract class BaseInventoryMenu<B extends ButtonMap> extends BaseMenu
ABaseMenu
for menus usingBukkitGUIHolder
-
-
Field Summary
-
Fields inherited from class me.hsgamer.bettergui.menu.BaseMenu
argumentHandler, closeActionApplier, closeRequirementApplier, openActionApplier, permissions, viewRequirementApplier
-
Fields inherited from class me.hsgamer.bettergui.api.menu.StandardMenu
configSettings, menuSettings
-
Fields inherited from class me.hsgamer.bettergui.api.menu.Menu
config, MENU_SETTINGS_PATH, variableManager
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseInventoryMenu(Config config)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
close(org.bukkit.entity.Player player)
Close the menuvoid
closeAll()
Close/Clear all inventories of the typeprotected abstract B
createButtonMap()
protected boolean
createChecked(org.bukkit.entity.Player player, String[] args, boolean bypass)
Create the menu after checking the conditionsB
getButtonMap()
BukkitGUIHolder
getGUIHolder()
protected void
refreshButtonMapOnCreate(B buttonMap, UUID uuid)
void
update(org.bukkit.entity.Player player)
Called when updating the menu-
Methods inherited from class me.hsgamer.bettergui.menu.BaseMenu
create, getArgumentHandler, tabComplete
-
Methods inherited from class me.hsgamer.bettergui.api.menu.Menu
getConfig, getName, getParentMenu, getVariableManager, setParentMenu
-
-
-
-
Constructor Detail
-
BaseInventoryMenu
protected BaseInventoryMenu(Config config)
-
-
Method Detail
-
createChecked
protected boolean createChecked(org.bukkit.entity.Player player, String[] args, boolean bypass)
Description copied from class:BaseMenu
Create the menu after checking the conditions- Specified by:
createChecked
in classBaseMenu
- Parameters:
player
- the playerargs
- the argumentsbypass
- if the requirement should be bypassed- Returns:
- true if the menu is created
- See Also:
BaseMenu.create(Player, String[], boolean)
-
update
public void update(org.bukkit.entity.Player player)
Description copied from class:Menu
Called when updating the menu
-
close
public void close(org.bukkit.entity.Player player)
Description copied from class:Menu
Close the menu
-
closeAll
public void closeAll()
Description copied from class:Menu
Close/Clear all inventories of the type
-
createButtonMap
protected abstract B createButtonMap()
-
getButtonMap
public B getButtonMap()
-
getGUIHolder
public BukkitGUIHolder getGUIHolder()
-
-