Package net.risingworld.api
Enum Class Server.Type
- All Implemented Interfaces:
Serializable
,Comparable<Server.Type>
,Constable
- Enclosing class:
Server
Server type
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDedicated RW serverLAN server with client as hostMultiplayer as client (i.e player is not the host).P2P session as clientP2P session as hostSingleplayer server (client is host)Unknown server type -
Method Summary
Modifier and TypeMethodDescriptionstatic Server.Type
Returns the enum constant of this class with the specified name.static Server.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Unknown
Unknown server type -
Singleplayer
Singleplayer server (client is host) -
Multiplayer
Multiplayer as client (i.e player is not the host). Not in P2P mode! -
LAN
LAN server with client as host -
Dedicated
Dedicated RW server -
P2PHost
P2P session as host -
P2PClient
P2P session as client
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-