Package net.minecraftforge.fml.config
Enum Class ModConfig.Type
- All Implemented Interfaces:
Serializable
,Comparable<ModConfig.Type>
,Constable
- Enclosing class:
- ModConfig
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionClient config is for configuration affecting the ONLY client state such as graphical options.Common mod config for configuration that needs to be loaded on both environments.Server type config is configuration that is associated with a server instance. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ModConfig.Type
Returns the enum constant of this class with the specified name.static ModConfig.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMMON
Common mod config for configuration that needs to be loaded on both environments. Loaded on both servers and clients. Stored in the global config directory. Not synced. Suffix is "-common" by default. -
CLIENT
Client config is for configuration affecting the ONLY client state such as graphical options. Only loaded on the client side. Stored in the global config directory. Not synced. Suffix is "-client" by default. -
SERVER
Server type config is configuration that is associated with a server instance. Only loaded during server startup. Stored in a server/save specific "serverconfig" directory. Synced to clients during connection. Suffix is "-server" by default.
-
-
Constructor Details
-
Type
private Type()
-
-
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
-
extension
-