Enum Class Server.Type

java.lang.Object
java.lang.Enum<Server.Type>
net.risingworld.api.Server.Type
All Implemented Interfaces:
Serializable, Comparable<Server.Type>, Constable
Enclosing class:
Server

public static enum Server.Type extends Enum<Server.Type>
Server type
  • Enum Constant Details

    • Unknown

      public static final Server.Type Unknown
      Unknown server type
    • Singleplayer

      public static final Server.Type Singleplayer
      Singleplayer server (client is host)
    • Multiplayer

      public static final Server.Type Multiplayer
      Multiplayer as client (i.e player is not the host). Not in P2P mode!
    • LAN

      public static final Server.Type LAN
      LAN server with client as host
    • Dedicated

      public static final Server.Type Dedicated
      Dedicated RW server
    • P2PHost

      public static final Server.Type P2PHost
      P2P session as host
    • P2PClient

      public static final Server.Type P2PClient
      P2P session as client
  • Method Details

    • values

      public static Server.Type[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Server.Type valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null