public final class ButtonBuilder extends me.hsgamer.hscore.builder.MassBuilder<ButtonBuilder.Input,WrappedButton>
| Modifier and Type | Class and Description |
|---|---|
static class |
ButtonBuilder.Input
The input for the button builder
|
| Modifier and Type | Field and Description |
|---|---|
static ButtonBuilder |
INSTANCE
The instance of the button builder
|
| Modifier and Type | Method and Description |
|---|---|
List<WrappedButton> |
getChildButtons(WrappedButton parentButton,
Map<String,Object> section)
Get the child buttons from the parent button
|
void |
register(Function<ButtonBuilder.Input,WrappedButton> creator,
String... type)
Register a new button creator
|
public static final ButtonBuilder INSTANCE
public void register(Function<ButtonBuilder.Input,WrappedButton> creator, String... type)
creator - the creatortype - the typepublic List<WrappedButton> getChildButtons(WrappedButton parentButton, Map<String,Object> section)
parentButton - the parent buttonsection - the child sectionCopyright © 2023. All rights reserved.