Enum Class ApplyMode

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

public enum ApplyMode extends Enum<ApplyMode>
Режим применения конфигурационного поля после изменения.

Используется GUI для предупреждений и логики сохранения:

  • LIVE — применяется сразу (перезапуск/перезагрузка ресурсов не нужны).
  • REQUIRES_RESOURCE_RELOAD — вступает в силу после перезагрузки ресурсов (F3+T).
  • REQUIRES_RESTART — вступает в силу только после перезапуска игры/модпака (например, захваченные в static final значения, worldgen/реестры).
  • Enum Constant Details

    • LIVE

      public static final ApplyMode LIVE
    • REQUIRES_RESOURCE_RELOAD

      public static final ApplyMode REQUIRES_RESOURCE_RELOAD
    • REQUIRES_RESTART

      public static final ApplyMode REQUIRES_RESTART
      Изменение требует перезапуска игры. В GUI помечается значком ⚠ и показом предупреждения.
  • Method Details

    • values

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