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