Package me.hsgamer.bettergui.config
Class TemplateButtonConfig
- java.lang.Object
-
- me.hsgamer.bettergui.config.TemplateButtonConfig
-
public class TemplateButtonConfig extends Object
The list of template button configurations
-
-
Constructor Summary
Constructors Constructor Description TemplateButtonConfig(org.bukkit.plugin.Plugin plugin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clear the listOptional<Map<String,Object>>get(String name)Get the config values of a template buttonCollection<String>getAllTemplateButtonNames()Get the names of all registered template buttonsvoidreload()Reload the listvoidsetup()Set up the list
-
-
-
Method Detail
-
setup
public void setup()
Set up the list
-
clear
public void clear()
Clear the list
-
reload
public void reload()
Reload the list
-
get
public Optional<Map<String,Object>> get(String name)
Get the config values of a template button- Parameters:
name- the name of the template button- Returns:
- the values as map
-
getAllTemplateButtonNames
public Collection<String> getAllTemplateButtonNames()
Get the names of all registered template buttons- Returns:
- the names
-
-