public class AdvancedFormWindowCustom
extends cn.nukkit.form.window.FormWindowCustom
| Modifier and Type | Field and Description |
|---|---|
protected BiConsumer<cn.nukkit.form.response.FormResponseCustom,cn.nukkit.Player> |
buttonClickedListener |
protected Consumer<cn.nukkit.Player> |
formClosedListener |
| Constructor and Description |
|---|
AdvancedFormWindowCustom(String title) |
AdvancedFormWindowCustom(String title,
List<cn.nukkit.form.element.Element> contents) |
AdvancedFormWindowCustom(String title,
List<cn.nukkit.form.element.Element> contents,
cn.nukkit.form.element.ElementButtonImageData icon) |
AdvancedFormWindowCustom(String title,
List<cn.nukkit.form.element.Element> contents,
String icon) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
callClosed(@NotNull cn.nukkit.Player player) |
protected void |
callResponded(@NotNull cn.nukkit.form.response.FormResponseCustom formResponseCustom,
@NotNull cn.nukkit.Player player) |
String |
getJSONData() |
AdvancedFormWindowCustom |
onClosed(@NotNull Consumer<cn.nukkit.Player> listener) |
static boolean |
onEvent(@NotNull cn.nukkit.form.window.FormWindow formWindow,
@NotNull cn.nukkit.Player player) |
AdvancedFormWindowCustom |
onResponded(@NotNull BiConsumer<cn.nukkit.form.response.FormResponseCustom,cn.nukkit.Player> listener) |
void |
showToPlayer(@NotNull cn.nukkit.Player player) |
protected BiConsumer<cn.nukkit.form.response.FormResponseCustom,cn.nukkit.Player> buttonClickedListener
protected Consumer<cn.nukkit.Player> formClosedListener
public AdvancedFormWindowCustom(String title)
public AdvancedFormWindowCustom(String title, List<cn.nukkit.form.element.Element> contents)
public AdvancedFormWindowCustom(String title, List<cn.nukkit.form.element.Element> contents, String icon)
public AdvancedFormWindowCustom onResponded(@NotNull @NotNull BiConsumer<cn.nukkit.form.response.FormResponseCustom,cn.nukkit.Player> listener)
public AdvancedFormWindowCustom onClosed(@NotNull @NotNull Consumer<cn.nukkit.Player> listener)
public void showToPlayer(@NotNull
@NotNull cn.nukkit.Player player)
protected void callResponded(@NotNull
@NotNull cn.nukkit.form.response.FormResponseCustom formResponseCustom,
@NotNull
@NotNull cn.nukkit.Player player)
protected void callClosed(@NotNull
@NotNull cn.nukkit.Player player)
public static boolean onEvent(@NotNull
@NotNull cn.nukkit.form.window.FormWindow formWindow,
@NotNull
@NotNull cn.nukkit.Player player)
public String getJSONData()
getJSONData in class cn.nukkit.form.window.FormWindowCopyright © 2022. All rights reserved.