public class SimpleForm extends Form<SimpleFormResponse>
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleForm.SimpleFormBuilder |
| Constructor and Description |
|---|
SimpleForm(String title,
String content,
List<ElementButton> buttons,
it.unimi.dsi.fastutil.ints.Int2ObjectMap<Consumer<Player>> buttonListeners,
List<BiConsumer<Player,SimpleFormResponse>> listeners,
List<Consumer<Player>> closeListeners,
List<Consumer<Player>> errorListeners) |
| Modifier and Type | Method and Description |
|---|---|
ElementButton |
getButton(int index) |
void |
handleResponse(Player p,
com.fasterxml.jackson.databind.JsonNode node) |
public ElementButton getButton(int index)
public void handleResponse(Player p, com.fasterxml.jackson.databind.JsonNode node)
handleResponse in class Form<SimpleFormResponse>Copyright © 2020. All rights reserved.