Package me.hsgamer.bettergui.menu
Class PredicateMenu
- java.lang.Object
-
- me.hsgamer.bettergui.api.menu.Menu
-
- me.hsgamer.bettergui.api.menu.StandardMenu
-
- me.hsgamer.bettergui.menu.PredicateMenu
-
public class PredicateMenu extends StandardMenu
-
-
Field Summary
-
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 Constructor Description PredicateMenu(Config config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose(org.bukkit.entity.Player player)Close the menuvoidcloseAll()Close/Clear all inventories of the typebooleancreate(org.bukkit.entity.Player player, String[] args, boolean bypass)Called when opening the menu for the playerList<String>tabComplete(org.bukkit.entity.Player player, String[] args)Called when the player hit TAB when typing the command to open the menuvoidupdate(org.bukkit.entity.Player player)Called when updating the menu-
Methods inherited from class me.hsgamer.bettergui.api.menu.Menu
getConfig, getName, getParentMenu, getVariableManager, setParentMenu
-
-
-
-
Constructor Detail
-
PredicateMenu
public PredicateMenu(Config config)
-
-
Method Detail
-
create
public boolean create(org.bukkit.entity.Player player, String[] args, boolean bypass)Description copied from class:MenuCalled when opening the menu for the player
-
tabComplete
public 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 classMenu- Parameters:
player- the player involved inargs- the arguments from the open command- Returns:
- the list of suggestions
-
update
public void update(org.bukkit.entity.Player player)
Description copied from class:MenuCalled when updating the menu
-
close
public void close(org.bukkit.entity.Player player)
Description copied from class:MenuClose the menu
-
-