Enum Class ConfigPreset
java.lang.Object
java.lang.Enum<ConfigPreset>
io.github.startsmercury.simply_no_shading.impl.client.config.v1.ConfigPreset
- All Implemented Interfaces:
Serializable,Comparable<ConfigPreset>,Constable
The configuration preset.
- Since:
- 8.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe customized preset is internally retained across presets.Old block lighting from internal shader.Simply No Shading defaults disables all shading types.All shading types are enabled on vanilla. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ConfigPreset> private final Optional<ConfigData> Preset override allow preset switching without losing the custom config.private static final List<ConfigPreset> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionoverride()Gets the config override for this preset.static List<ConfigPreset> static ConfigPresetReturns the enum constant of this class with the specified name.static ConfigPreset[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VANILLA
All shading types are enabled on vanilla. -
INTERNAL_SHADERS
Old block lighting from internal shader. -
SIMPLY_NO_SHADING
Simply No Shading defaults disables all shading types. -
CUSTOM
The customized preset is internally retained across presets.
-
-
Field Details
-
VALUE_LIST
-
CODEC
-
override
Preset override allow preset switching without losing the custom config.
-
-
Constructor Details
-
ConfigPreset
private ConfigPreset() -
ConfigPreset
-
-
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
-
valueList
-
override
Gets the config override for this preset.Preset overrides allow preset switching without losing the custom config.
- Returns:
- The config override for this preset.
- Implementation Requirements:
switch (this) { VANILLA -> Optional.of(ConfigData.VANILLA); INTERNAL_SHADERS -> Optional.of(ConfigData.INTERNAL_SHADERS); SIMPLY_NO_SHADING -> Optional.of(ConfigData.SIMPLY_NO_SHADING); CUSTOM -> Option.empty(); }
-