Class Config
java.lang.Object
com.github.startsmercury.simply.no.shading.client.Config
The
Config class is extendable but immutable collection of data that
plays a role in the bahavior of Simply No Shading, primarily in toggling
shading.- Since:
- 6.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTheConfig.Builderclass is the builder forConfig. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConfigThe config preset where all shading options were disabled.final booleanControls block shading, excluding block entities.final booleanControls cloud shading.static final ConfigThe config preset that mimics OptiFine's Internal Shaders (with Old Lighting enabled).static final ConfigThe config preset that aligns with the vanilla game's default. -
Constructor Summary
ConstructorsConstructorDescriptionConfig(boolean blockShadingEnabled, boolean cloudShadingEnabled) Creates a new config with all the fields set. -
Method Summary
Modifier and TypeMethodDescriptionstatic Config.Builderbuilder()Creates a new builder.static Config.BuilderCreates a new builder with fields set to a pre-existing config.booleaninthashCode()booleanReturnstrueif block shading is enabled;falseotherwise.booleanReturnstrueif cloud shading is enabled;falseotherwise.toString()
-
Field Details
-
ALL_OFF
The config preset where all shading options were disabled. -
INTERNAL_SHADERS
The config preset that mimics OptiFine's Internal Shaders (with Old Lighting enabled). -
VANILLA
The config preset that aligns with the vanilla game's default. Essentially like when Simply No Shading is not present. -
blockShadingEnabled
public final boolean blockShadingEnabledControls block shading, excluding block entities. -
cloudShadingEnabled
public final boolean cloudShadingEnabledControls cloud shading.
-
-
Constructor Details
-
Config
public Config(boolean blockShadingEnabled, boolean cloudShadingEnabled) Creates a new config with all the fields set.- Parameters:
blockShadingEnabled- controls block shading, excluding block entitiescloudShadingEnabled- controls cloud shading
-
-
Method Details
-
builder
Creates a new builder.- Returns:
- a new builder
-
builder
Creates a new builder with fields set to a pre-existing config.- Parameters:
config- the config to base on- Returns:
- a new builder
-
equals
-
hashCode
public int hashCode() -
isBlockShadingEnabled
public boolean isBlockShadingEnabled()Returnstrueif block shading is enabled;falseotherwise.- Returns:
trueif block shading is enabled;falseotherwise
-
isCloudShadingEnabled
public boolean isCloudShadingEnabled()Returnstrueif cloud shading is enabled;falseotherwise.- Returns:
trueif cloud shading is enabled;falseotherwise
-
toString
-