Class Config
java.lang.Object
com.github.startsmercury.simply.no.shading.client.Config
Deprecated, for removal: This API element is subject to removal in a future version.
The
Config class is extendable but immutable collection of data that
plays a role in the behavior of Simply No Shading, primarily in toggling
shading.- Since:
- 6.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated, for removal: This API element is subject to removal in a future version.No replacement -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConfigDeprecated, for removal: This API element is subject to removal in a future version.The config preset where all shading options were disabled.final booleanDeprecated, for removal: This API element is subject to removal in a future version.Controls block shading, excluding block entities.final booleanDeprecated, for removal: This API element is subject to removal in a future version.Controls cloud shading.static final ConfigDeprecated, for removal: This API element is subject to removal in a future version.The config preset that mimics OptiFine's Internal Shaders (with Old Lighting enabled).static final ConfigDeprecated, for removal: This API element is subject to removal in a future version.The config preset that aligns with the vanilla game's default. -
Constructor Summary
ConstructorsConstructorDescriptionConfig(boolean blockShadingEnabled, boolean cloudShadingEnabled) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new config with all the fields set. -
Method Summary
Modifier and TypeMethodDescriptionstatic Config.Builderbuilder()Deprecated, for removal: This API element is subject to removal in a future version.Creates a new builder.static Config.BuilderDeprecated, for removal: This API element is subject to removal in a future version.Creates a new builder with fields set to a pre-existing config.booleanDeprecated, for removal: This API element is subject to removal in a future version.inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.Returnstrueif block shading is enabled;falseotherwise.booleanDeprecated, for removal: This API element is subject to removal in a future version.Returnstrueif cloud shading is enabled;falseotherwise.toString()Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
ALL_OFF
Deprecated, for removal: This API element is subject to removal in a future version.The config preset where all shading options were disabled. -
INTERNAL_SHADERS
Deprecated, for removal: This API element is subject to removal in a future version.The config preset that mimics OptiFine's Internal Shaders (with Old Lighting enabled). -
VANILLA
Deprecated, for removal: This API element is subject to removal in a future version.The config preset that aligns with the vanilla game's default. Essentially like when Simply No Shading is not present. -
blockShadingEnabled
public final boolean blockShadingEnabledDeprecated, for removal: This API element is subject to removal in a future version.Controls block shading, excluding block entities. -
cloudShadingEnabled
public final boolean cloudShadingEnabledDeprecated, for removal: This API element is subject to removal in a future version.Controls cloud shading.
-
-
Constructor Details
-
Config
public Config(boolean blockShadingEnabled, boolean cloudShadingEnabled) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new config with all the fields set.- Parameters:
blockShadingEnabled- controls block shading, excluding block entitiescloudShadingEnabled- controls cloud shading
-
-
Method Details
-
builder
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new builder.- Returns:
- a new builder
-
builder
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new builder with fields set to a pre-existing config.- Parameters:
config- the config to base on- Returns:
- a new builder
-
equals
Deprecated, for removal: This API element is subject to removal in a future version. -
hashCode
public int hashCode()Deprecated, for removal: This API element is subject to removal in a future version. -
isBlockShadingEnabled
public boolean isBlockShadingEnabled()Deprecated, for removal: This API element is subject to removal in a future version.Returnstrueif block shading is enabled;falseotherwise.- Returns:
trueif block shading is enabled;falseotherwise
-
isCloudShadingEnabled
public boolean isCloudShadingEnabled()Deprecated, for removal: This API element is subject to removal in a future version.Returnstrueif cloud shading is enabled;falseotherwise.- Returns:
trueif cloud shading is enabled;falseotherwise
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.
-
Config