Class Config.Builder
java.lang.Object
com.github.startsmercury.simply.no.shading.client.Config.Builder
- Enclosing class:
- Config
The
Config.Builder class is the builder for Config. For
further details, refer to the Config class as documenting the builder
would potentially be redundant and may be overlooked or be outdated.-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()Creates a new config builder with data initially set for vanilla behavior. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns a newly build config.booleanReturnstrueif block shading is enabled;falseotherwise.booleanReturnstrueif cloud shading is enabled;falseotherwise.setBlockShadingEnabled(boolean blockShadingEnabled) Sets block shading enabled or disabled, excluding block entities.setCloudShadingEnabled(boolean cloudShadingEnabled) Sets cloud shading enabled or disabled.
-
Constructor Details
-
Builder
public Builder()Creates a new config builder with data initially set for vanilla behavior.
-
-
Method Details
-
build
Returns a newly build config.- Returns:
- a newly build config
-
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
-
setBlockShadingEnabled
Sets block shading enabled or disabled, excluding block entities.- Parameters:
blockShadingEnabled- block shading flag- Returns:
thisbuilder
-
setCloudShadingEnabled
Sets cloud shading enabled or disabled.- Parameters:
cloudShadingEnabled- cloud shading flag- Returns:
thisbuilder
-