public abstract class BaseWrappedButton extends Object implements WrappedButton
| Modifier and Type | Field and Description |
|---|---|
protected me.hsgamer.hscore.bukkit.gui.button.Button |
button |
protected Menu |
menu |
protected String |
name |
protected Map<String,Object> |
options |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseWrappedButton(ButtonBuilder.Input input)
Create a new wrapped button
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract me.hsgamer.hscore.bukkit.gui.button.Button |
createButton(Map<String,Object> section)
Create the button from the section
|
boolean |
forceSetAction(UUID uuid) |
org.bukkit.inventory.ItemStack |
getItemStack(UUID uuid) |
Menu |
getMenu()
Get the menu containing the element
|
String |
getName()
Get the name of the button
|
Map<String,Object> |
getOptions()
Get the options of the button
|
void |
handleAction(UUID uuid,
org.bukkit.event.inventory.InventoryClickEvent event) |
void |
init() |
void |
stop() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrefreshprotected final Menu menu
protected final String name
protected final me.hsgamer.hscore.bukkit.gui.button.Button button
protected BaseWrappedButton(ButtonBuilder.Input input)
input - the inputprotected abstract me.hsgamer.hscore.bukkit.gui.button.Button createButton(Map<String,Object> section)
section - the sectionpublic Map<String,Object> getOptions()
public String getName()
WrappedButtongetName in interface WrappedButtonpublic Menu getMenu()
MenuElementgetMenu in interface MenuElementpublic org.bukkit.inventory.ItemStack getItemStack(UUID uuid)
getItemStack in interface me.hsgamer.hscore.bukkit.gui.button.Buttonpublic void handleAction(UUID uuid, org.bukkit.event.inventory.InventoryClickEvent event)
handleAction in interface me.hsgamer.hscore.bukkit.gui.button.Buttonpublic void init()
init in interface me.hsgamer.hscore.ui.property.Initializablepublic void stop()
stop in interface me.hsgamer.hscore.ui.property.Initializablepublic boolean forceSetAction(UUID uuid)
forceSetAction in interface me.hsgamer.hscore.bukkit.gui.button.ButtonCopyright © 2023. All rights reserved.