Package me.hsgamer.bettergui.api.button
Class BaseWrappedButton<B extends me.hsgamer.hscore.minecraft.gui.button.Button>
- java.lang.Object
-
- me.hsgamer.bettergui.api.button.BaseWrappedButton<B>
-
- All Implemented Interfaces:
WrappedButton,MenuElement,me.hsgamer.hscore.minecraft.gui.button.Button,me.hsgamer.hscore.ui.property.Initializable
- Direct Known Subclasses:
ActionButton,EmptyButton,LegacyMenuButton,TemplateButton,WrappedAnimatedButton,WrappedDummyButton,WrappedListButton,WrappedPredicateButton
public abstract class BaseWrappedButton<B extends me.hsgamer.hscore.minecraft.gui.button.Button> 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 BcreateButton(Map<String,Object> section)Create the button from the section@Nullable me.hsgamer.hscore.minecraft.gui.button.DisplayButtondisplay(@NotNull UUID uuid)MenugetMenu()Get the menu containing the elementStringgetName()Get the name of the buttonMap<String,Object>getOptions()Get the options of the buttonvoidinit()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 B 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
-
display
@Nullable public @Nullable me.hsgamer.hscore.minecraft.gui.button.DisplayButton display(@NotNull @NotNull UUID uuid)- Specified by:
displayin interfaceme.hsgamer.hscore.minecraft.gui.button.Button
-
init
public void init()
- Specified by:
initin interfaceme.hsgamer.hscore.ui.property.Initializable
-
stop
public void stop()
- Specified by:
stopin interfaceme.hsgamer.hscore.ui.property.Initializable
-
-