Enum ServerModuleType
- java.lang.Object
-
- java.lang.Enum<ServerModuleType>
-
- de.extio.spacecraft.shared.module.ServerModuleType
-
- All Implemented Interfaces:
Serializable
,Comparable<ServerModuleType>
public enum ServerModuleType extends Enum<ServerModuleType>
Specifies the type of server module - has an effect on the life cycle of a module
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ENTITY_CONTROLLER
Server module to specifically control / orchestrate entities.GAME_MODE
Server module implementing a game mode.GENERAL
General purpose server module, usually implementing certain game logic.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServerModuleType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ServerModuleType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GENERAL
public static final ServerModuleType GENERAL
General purpose server module, usually implementing certain game logic. Such modules are always running during the life cycle of a game session.
-
ENTITY_CONTROLLER
public static final ServerModuleType ENTITY_CONTROLLER
Server module to specifically control / orchestrate entities. Such modules are always running during the life cycle of a game session.
-
GAME_MODE
public static final ServerModuleType GAME_MODE
Server module implementing a game mode. Game mode modules are only running when a certain game mode has been selected. You must specify it in the serverModules list in the mod.xml GameModeDef section.
-
-
Method Detail
-
values
public static ServerModuleType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ServerModuleType c : ServerModuleType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServerModuleType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-