java.lang.Object
com.github.startsmercury.simply.no.shading.client.Config

public class Config extends Object
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 Classes
    Modifier and Type
    Class
    Description
    static class 
    The Config.Builder class is the builder for Config.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Config
    The config preset where all shading options were disabled.
    final boolean
    Controls block shading, excluding block entities.
    final boolean
    Controls cloud shading.
    static final Config
    The config preset that mimics OptiFine's Internal Shaders (with Old Lighting enabled).
    static final Config
    The config preset that aligns with the vanilla game's default.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Config(boolean blockShadingEnabled, boolean cloudShadingEnabled)
    Creates a new config with all the fields set.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a new builder.
    builder(Config config)
    Creates a new builder with fields set to a pre-existing config.
    boolean
    int
    boolean
    Returns true if block shading is enabled; false otherwise.
    boolean
    Returns true if cloud shading is enabled; false otherwise.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • ALL_OFF

      public static final Config ALL_OFF
      The config preset where all shading options were disabled.
    • INTERNAL_SHADERS

      public static final Config INTERNAL_SHADERS
      The config preset that mimics OptiFine's Internal Shaders (with Old Lighting enabled).
    • VANILLA

      public static final Config 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 blockShadingEnabled
      Controls block shading, excluding block entities.
    • cloudShadingEnabled

      public final boolean cloudShadingEnabled
      Controls 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 entities
      cloudShadingEnabled - controls cloud shading
  • Method Details

    • builder

      public static Config.Builder builder()
      Creates a new builder.
      Returns:
      a new builder
    • builder

      public static Config.Builder builder(Config config)
      Creates a new builder with fields set to a pre-existing config.
      Parameters:
      config - the config to base on
      Returns:
      a new builder
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isBlockShadingEnabled

      public boolean isBlockShadingEnabled()
      Returns true if block shading is enabled; false otherwise.
      Returns:
      true if block shading is enabled; false otherwise
    • isCloudShadingEnabled

      public boolean isCloudShadingEnabled()
      Returns true if cloud shading is enabled; false otherwise.
      Returns:
      true if cloud shading is enabled; false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object