Package me.hsgamer.bettergui.api.button
Class BaseWrappedButton
- java.lang.Object
-
- me.hsgamer.bettergui.api.button.BaseWrappedButton
-
- All Implemented Interfaces:
WrappedButton,MenuElement,me.hsgamer.hscore.bukkit.gui.button.Button,Initializable
- Direct Known Subclasses:
ActionButton,EmptyButton,LegacyMenuButton,TemplateButton,WrappedAnimatedButton,WrappedDummyButton,WrappedListButton,WrappedPredicateButton
public abstract class BaseWrappedButton extends Object implements WrappedButton
The base class of wrapped button
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseWrappedButton(ButtonBuilder.Input input)Create a new wrapped button
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract me.hsgamer.hscore.bukkit.gui.button.ButtoncreateButton(Map<String,Object> section)Create the button from the sectionbooleanforceSetAction(UUID uuid)org.bukkit.inventory.ItemStackgetItemStack(UUID uuid)MenugetMenu()Get the menu containing the elementStringgetName()Get the name of the buttonMap<String,Object>getOptions()Get the options of the buttonvoidhandleAction(UUID uuid, org.bukkit.event.inventory.InventoryClickEvent event)voidinit()voidstop()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface me.hsgamer.bettergui.api.button.WrappedButton
refresh
-
-
-
-
Constructor Detail
-
BaseWrappedButton
protected BaseWrappedButton(ButtonBuilder.Input input)
Create a new wrapped button- Parameters:
input- the input
-
-
Method Detail
-
createButton
protected abstract me.hsgamer.hscore.bukkit.gui.button.Button createButton(Map<String,Object> section)
Create the button from the section- Parameters:
section- the section- Returns:
- the button
-
getOptions
public Map<String,Object> getOptions()
Get the options of the button- Returns:
- the options
-
getName
public String getName()
Description copied from interface:WrappedButtonGet the name of the button- Specified by:
getNamein interfaceWrappedButton- Returns:
- the name
-
getMenu
public Menu getMenu()
Description copied from interface:MenuElementGet the menu containing the element- Specified by:
getMenuin interfaceMenuElement- Returns:
- the menu
-
getItemStack
public org.bukkit.inventory.ItemStack getItemStack(UUID uuid)
- Specified by:
getItemStackin interfaceme.hsgamer.hscore.bukkit.gui.button.Button
-
handleAction
public void handleAction(UUID uuid, org.bukkit.event.inventory.InventoryClickEvent event)
- Specified by:
handleActionin interfaceme.hsgamer.hscore.bukkit.gui.button.Button
-
init
public void init()
- Specified by:
initin interfaceInitializable
-
stop
public void stop()
- Specified by:
stopin interfaceInitializable
-
forceSetAction
public boolean forceSetAction(UUID uuid)
- Specified by:
forceSetActionin interfaceme.hsgamer.hscore.bukkit.gui.button.Button
-
-