Interface GuiStateListener

All Superinterfaces:
EventListener

public interface GuiStateListener extends EventListener
Interface for listeners interested gui state changes.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    The connection has been established.
    void
    connectFailed(@NotNull String reason)
    A connection attempt failed.
    void
    connecting(@NotNull ClientSocketState clientSocketState, @NotNull String param)
    Connection establishment is in progress.
    void
    connecting(@NotNull String serverInfo)
    Connection establishment is in progress.
    void
    The server selection screen is displayed.
    void
    preConnecting(@NotNull String serverInfo)
    Connection establishment is in progress.
    void
    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

      void preConnecting(@NotNull @NotNull String serverInfo)
      Connection establishment is in progress. This function will be called before connecting(String).
      Parameters:
      serverInfo - the server connecting to
    • connecting

      void connecting(@NotNull @NotNull String serverInfo)
      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 state
      param - additional information; currently only used in state ClientSocketState.REQUESTINFO
    • connected

      void connected()
      The connection has been established.
    • connectFailed

      void connectFailed(@NotNull @NotNull String reason)
      A connection attempt failed.
      Parameters:
      reason - the failure reason