Enum ServerModuleType

    • 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 name
        NullPointerException - if the argument is null