Enum Class ConfigSide

java.lang.Object
java.lang.Enum<ConfigSide>
com.hbm_m.config.schema.ConfigSide
All Implemented Interfaces:
Serializable, Comparable<ConfigSide>, Constable

public enum ConfigSide extends Enum<ConfigSide>
Логическая сторона (владелец значения) конфигурационного поля.

Повторяет оригинальное разделение 1.7.10:

  • ClientConfighbmClient.jsonCLIENT
  • ServerConfighbmServer.jsonSERVER

От стороны зависят:

  • в какой JSON-файл идёт сериализация (config/hbm_m/client.json или server.json);
  • нужна ли синхронизация с сервера (S2C snapshot);
  • на какой вкладке GUI появляется поле.
  • Enum Constant Details

    • CLIENT

      public static final ConfigSide CLIENT
      Клиентская настройка (рендер, оверлеи, отладка). Не синхронизируется.
    • SERVER

      public static final ConfigSide SERVER
      Серверная настройка (радиация, взрывы, оружие, машины). Синхронизируется S2C.
  • Method Details

    • values

      public static ConfigSide[] 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 ConfigSide 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