public class AdvancedFormWindowDialog extends Object
| Modifier and Type | Field and Description |
|---|---|
private cn.nukkit.entity.Entity |
bindEntity |
private List<ResponseElementDialogButton> |
buttons |
private String |
content |
private static long |
dialogId |
protected BiConsumer<cn.nukkit.Player,FormResponseDialog> |
formClosedListener |
protected static com.google.gson.Gson |
GSON |
private boolean |
isClosed |
private String |
sceneName |
private String |
skinData |
private String |
title |
static com.google.common.cache.Cache<String,AdvancedFormWindowDialog> |
WINDOW_DIALOG_CACHE |
| Constructor and Description |
|---|
AdvancedFormWindowDialog(String title,
String content,
cn.nukkit.entity.Entity bindEntity) |
AdvancedFormWindowDialog(String title,
String content,
cn.nukkit.entity.Entity bindEntity,
List<ResponseElementDialogButton> buttons) |
protected static final com.google.gson.Gson GSON
private static long dialogId
private String title
private String content
private String skinData
private String sceneName
private List<ResponseElementDialogButton> buttons
private final cn.nukkit.entity.Entity bindEntity
protected BiConsumer<cn.nukkit.Player,FormResponseDialog> formClosedListener
private boolean isClosed
public static final com.google.common.cache.Cache<String,AdvancedFormWindowDialog> WINDOW_DIALOG_CACHE
public AdvancedFormWindowDialog(String title, String content, cn.nukkit.entity.Entity bindEntity)
public AdvancedFormWindowDialog(String title, String content, cn.nukkit.entity.Entity bindEntity, List<ResponseElementDialogButton> buttons)
public String getTitle()
public void setTitle(String title)
public String getContent()
public void setContent(String content)
public List<ResponseElementDialogButton> getButtons()
public void setButtons(List<ResponseElementDialogButton> buttons)
public ResponseElementDialogButton addAdvancedButton(String text)
@Deprecated public ResponseElementDialogButton addButton(String text)
public ResponseElementDialogButton addButton(ResponseElementDialogButton button)
public long getEntityId()
public cn.nukkit.entity.Entity getBindEntity()
public String getSkinData()
public void setSkinData(String data)
public String getButtonJSONData()
public void setButtonJSONData(String json)
public String getSceneName()
public void updateSceneName()
public AdvancedFormWindowDialog onClosed(@NotNull @NotNull BiConsumer<cn.nukkit.Player,FormResponseDialog> listener)
protected void callClosed(@NotNull
@NotNull cn.nukkit.Player player,
FormResponseDialog response)
public void send(cn.nukkit.Player player)
public void close(cn.nukkit.Player player,
FormResponseDialog response)
public static boolean onEvent(@NotNull
@NotNull NPCRequestPacket packet,
@NotNull
@NotNull cn.nukkit.Player player)
Copyright © 2022. All rights reserved.