public class CustomForm extends Form<CustomFormResponse>
| Modifier and Type | Class and Description |
|---|---|
static class |
CustomForm.CustomFormBuilder |
| Constructor and Description |
|---|
CustomForm(String title,
ImageData icon,
List<Element> elements,
List<BiConsumer<Player,CustomFormResponse>> listeners,
List<Consumer<Player>> closeListeners,
List<Consumer<Player>> errorListeners) |
| Modifier and Type | Method and Description |
|---|---|
Element |
getElement(int index) |
void |
handleResponse(Player p,
com.fasterxml.jackson.databind.JsonNode node) |
public Element getElement(int index)
index - element indexIndexOutOfBoundsException - if the index is out of rangepublic void handleResponse(Player p, com.fasterxml.jackson.databind.JsonNode node)
handleResponse in class Form<CustomFormResponse>Copyright © 2020. All rights reserved.