Config@Deprecated
public class Config
extends java.lang.Object
Config class is extendable but immutable collection of data that
plays a role in the behavior of Simply No Shading, primarily in toggling
shading.| Modifier and Type | Class and Description |
|---|---|
static class |
Config.Builder
Deprecated.
For removal since 7.0.0 with no replacement
|
| Modifier and Type | Field and Description |
|---|---|
static Config |
ALL_OFF
Deprecated.
The config preset where all shading options were disabled.
|
boolean |
blockShadingEnabled
Deprecated.
Controls block shading, excluding block entities.
|
boolean |
cloudShadingEnabled
Deprecated.
Controls cloud shading.
|
boolean |
entityShadingEnabled
Deprecated.
Controls entity shading.
|
static Config |
INTERNAL_SHADERS
Deprecated.
The config preset that mimics OptiFine's Internal Shaders (with Old Lighting
enabled).
|
static Config |
VANILLA
Deprecated.
The config preset that aligns with the vanilla game's default.
|
| Constructor and Description |
|---|
Config(boolean blockShadingEnabled,
boolean cloudShadingEnabled,
boolean entityShadingEnabled)
Deprecated.
Creates a new config with all the fields set.
|
| Modifier and Type | Method and Description |
|---|---|
static Config.Builder |
builder()
Deprecated.
Creates a new builder.
|
static Config.Builder |
builder(Config config)
Deprecated.
Creates a new builder with fields set to a pre-existing config.
|
boolean |
equals(Config other)
Deprecated.
Returns
true if this config's contents are equal to another's. |
boolean |
equals(java.lang.Object obj)
Deprecated.
|
int |
hashCode()
Deprecated.
|
boolean |
isBlockShadingEnabled()
Deprecated.
Returns
true if block shading is enabled; false otherwise. |
boolean |
isCloudShadingEnabled()
Deprecated.
Returns
true if cloud shading is enabled; false otherwise. |
boolean |
isEntityShadingEnabled()
Deprecated.
Returns
true if entity shading is enabled; false otherwise. |
java.lang.String |
toString()
Deprecated.
|
public static final Config ALL_OFF
public static final Config INTERNAL_SHADERS
public static final Config VANILLA
public final boolean blockShadingEnabled
public final boolean cloudShadingEnabled
public final boolean entityShadingEnabled
public Config(boolean blockShadingEnabled,
boolean cloudShadingEnabled,
boolean entityShadingEnabled)
blockShadingEnabled - controls block shading, excluding block entitiescloudShadingEnabled - controls cloud shadingentityShadingEnabled - controls entity shadingpublic static Config.Builder builder()
public static Config.Builder builder(Config config)
config - the config to base onpublic boolean equals(Config other)
true if this config's contents are equal to another's.other - the other configtrue if this contents is equal to other'spublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isBlockShadingEnabled()
true if block shading is enabled; false otherwise.true if block shading is enabled; false otherwisepublic boolean isCloudShadingEnabled()
true if cloud shading is enabled; false otherwise.true if cloud shading is enabled; false otherwisepublic boolean isEntityShadingEnabled()
true if entity shading is enabled; false otherwise.true if entity shading is enabled; false otherwisepublic java.lang.String toString()
toString in class java.lang.Object