Package me.hsgamer.bettergui.menu
Class BaseMenu
- java.lang.Object
- 
- me.hsgamer.bettergui.api.menu.Menu
- 
- me.hsgamer.bettergui.api.menu.StandardMenu
- 
- me.hsgamer.bettergui.menu.BaseMenu
 
 
 
- 
- Direct Known Subclasses:
- BaseInventoryMenu
 
 public abstract class BaseMenu extends StandardMenu AStandardMenuwith some basic features. Included: -open-action: The action to run when the menu is opened. Need to be called manually. -close-action: The action to run when the menu is closed. Need to be called manually. -view-requirement: The requirement to view the menu -close-requirement: The requirement to close the menu. Need to be called manually. -permission: The permission to view the menu -argument-processor: The argument processor for the menu -command: The command to open the menu
- 
- 
Field SummaryFields Modifier and Type Field Description protected ArgumentHandlerargumentHandlerprotected ActionAppliercloseActionApplierprotected RequirementAppliercloseRequirementApplierprotected ActionApplieropenActionApplierprotected List<org.bukkit.permissions.Permission>permissionsprotected RequirementApplierviewRequirementApplier- 
Fields inherited from class me.hsgamer.bettergui.api.menu.StandardMenuconfigSettings, menuSettings
 - 
Fields inherited from class me.hsgamer.bettergui.api.menu.Menuconfig, MENU_SETTINGS_PATH, variableManager
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleancreate(org.bukkit.entity.Player player, String[] args, boolean bypass)Called when opening the menu for the playerprotected abstract booleancreateChecked(org.bukkit.entity.Player player, String[] args, boolean bypass)Create the menu after checking the conditionsArgumentHandlergetArgumentHandler()List<String>tabComplete(org.bukkit.entity.Player player, String[] args)Called when the player hit TAB when typing the command to open the menu- 
Methods inherited from class me.hsgamer.bettergui.api.menu.Menuclose, closeAll, getConfig, getName, getParentMenu, getVariableManager, setParentMenu, update
 
- 
 
- 
- 
- 
Field Detail- 
openActionApplierprotected final ActionApplier openActionApplier 
 - 
closeActionApplierprotected final ActionApplier closeActionApplier 
 - 
viewRequirementApplierprotected final RequirementApplier viewRequirementApplier 
 - 
closeRequirementApplierprotected final RequirementApplier closeRequirementApplier 
 - 
permissionsprotected final List<org.bukkit.permissions.Permission> permissions 
 - 
argumentHandlerprotected final ArgumentHandler argumentHandler 
 
- 
 - 
Constructor Detail- 
BaseMenuprotected BaseMenu(Config config) 
 
- 
 - 
Method Detail- 
createCheckedprotected abstract boolean createChecked(org.bukkit.entity.Player player, String[] args, boolean bypass)Create the menu after checking the conditions- Parameters:
- player- the player
- args- the arguments
- bypass- if the requirement should be bypassed
- Returns:
- true if the menu is created
- See Also:
- create(Player, String[], boolean)
 
 - 
createpublic boolean create(org.bukkit.entity.Player player, String[] args, boolean bypass)Description copied from class:MenuCalled when opening the menu for the player
 - 
tabCompletepublic List<String> tabComplete(org.bukkit.entity.Player player, String[] args) Description copied from class:MenuCalled when the player hit TAB when typing the command to open the menu- Overrides:
- tabCompletein class- Menu
- Parameters:
- player- the player involved in
- args- the arguments from the open command
- Returns:
- the list of suggestions
 
 - 
getArgumentHandlerpublic ArgumentHandler getArgumentHandler() 
 
- 
 
-