Call.textInput (#8355)
* Update Menus.java
* Update EventType.java
* Update UI.java
* WHY
* WHY x2
* fix
* 💀
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user