Call.textInput (#8355)

* Update Menus.java

* Update EventType.java

* Update UI.java

* WHY

* WHY x2

* fix

* 💀
This commit is contained in:
Даркнесс#3729
2023-03-25 20:50:25 +03:00
committed by GitHub
parent 58eef49284
commit 4be7cf5c0e
3 changed files with 66 additions and 16 deletions

View File

@@ -161,7 +161,7 @@ public class EventType{
this.host = host;
}
}
public static class ClientServerConnectEvent{
public final String ip;
public final int port;
@@ -179,8 +179,21 @@ public class EventType{
public MenuOptionChooseEvent(Player player, int menuId, int option){
this.player = player;
this.option = option;
this.menuId = menuId;
this.option = option;
}
}
/** Consider using Menus.registerTextInput instead. */
public static class TextInputEvent{
public final Player player;
public final int textInputId;
public final @Nullable String text;
public TextInputEvent(Player player, int textInputId, String text){
this.player = player;
this.textInputId = textInputId;
this.text = text;
}
}