Enum Class ConfigLoadedEvent.LoadReason

java.lang.Object
java.lang.Enum<ConfigLoadedEvent.LoadReason>
org.moddingx.libx.event.ConfigLoadedEvent.LoadReason
All Implemented Interfaces:
Serializable, Comparable<ConfigLoadedEvent.LoadReason>, Constable
Enclosing class:
ConfigLoadedEvent

public static enum ConfigLoadedEvent.LoadReason extends Enum<ConfigLoadedEvent.LoadReason>
A reason for a config to load
  • Enum Constant Details

    • INITIAL

      public static final ConfigLoadedEvent.LoadReason INITIAL
      First load of the config.
    • SHADOW

      public static final ConfigLoadedEvent.LoadReason SHADOW
      This is the load reason when the values are synced with the values from the server. This is only fired on the client.
    • LOCAL_SHADOW

      public static final ConfigLoadedEvent.LoadReason LOCAL_SHADOW
      This is the load reason when the values are loaded from the singleplayer world specific config folder. This is only fired on the client.
    • RESTORE

      public static final ConfigLoadedEvent.LoadReason RESTORE
      This is the load reason when the values are restored to their state before they were shadowed by values from the server. This is only fired on the client.
    • RELOAD

      public static final ConfigLoadedEvent.LoadReason RELOAD
      An explicit reload of a config.
    • INGAME_CHANGES

      public static final ConfigLoadedEvent.LoadReason INGAME_CHANGES
      Changes made to the config from the ingame config GUI.
  • Method Details

    • values

      public static ConfigLoadedEvent.LoadReason[] 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 ConfigLoadedEvent.LoadReason 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