Package org.moddingx.libx.event
Enum Class ConfigLoadedEvent.LoadReason
- All Implemented Interfaces:
Serializable
,Comparable<ConfigLoadedEvent.LoadReason>
,Constable
- Enclosing class:
- ConfigLoadedEvent
A reason for a config to load
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionChanges made to the config from the ingame config GUI.First load of the config.This is the load reason when the values are loaded from the singleplayer world specific config folder.An explicit reload of a config.This is the load reason when the values are restored to their state before they were shadowed by values from the server.This is the load reason when the values are synced with the values from the server. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigLoadedEvent.LoadReason
Returns the enum constant of this class with the specified name.static ConfigLoadedEvent.LoadReason[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INITIAL
First load of the config. -
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
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
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
An explicit reload of a config. -
INGAME_CHANGES
Changes made to the config from the ingame config GUI.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-