Interface GuiStateListener
- All Superinterfaces:
EventListener
Interface for listeners interested gui state changes.
-
Method Summary
Modifier and TypeMethodDescriptionvoidThe connection has been established.voidconnectFailed(@NotNull String reason) A connection attempt failed.voidconnecting(@NotNull ClientSocketState clientSocketState, @NotNull String param) Connection establishment is in progress.voidconnecting(@NotNull String serverInfo) Connection establishment is in progress.voidThe server selection screen is displayed.voidpreConnecting(@NotNull String serverInfo) Connection establishment is in progress.voidstart()The start screen is displayed.
-
Method Details
-
start
void start()The start screen is displayed. -
metaserver
void metaserver()The server selection screen is displayed. -
preConnecting
Connection establishment is in progress. This function will be called beforeconnecting(String).- Parameters:
serverInfo- the server connecting to
-
connecting
Connection establishment is in progress.- Parameters:
serverInfo- the server connecting to
-
connecting
void connecting(@NotNull @NotNull ClientSocketState clientSocketState, @NotNull @NotNull String param) Connection establishment is in progress.- Parameters:
clientSocketState- the client socket stateparam- additional information; currently only used in stateClientSocketState.REQUESTINFO
-
connected
void connected()The connection has been established. -
connectFailed
A connection attempt failed.- Parameters:
reason- the failure reason
-