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

@Deprecated(since="7.0.0", forRemoval=true) public class Config extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
As of version 7.0.0, replaced by Config
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 Classes
    Modifier and Type
    Class
    Description
    static class 
    Deprecated, for removal: This API element is subject to removal in a future version.
    No replacement
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Config
    Deprecated, for removal: This API element is subject to removal in a future version.
    The config preset where all shading options were disabled.
    final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Controls block shading, excluding block entities.
    final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Controls cloud shading.
    static final Config
    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).
    static final Config
    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.
  • Constructor Summary

    Constructors
    Constructor
    Description
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a new builder.
    builder(Config config)
    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.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns true if block shading is enabled; false otherwise.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns true if cloud shading is enabled; false otherwise.
    Deprecated, for removal: This API element is subject to removal in a future version.

    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
      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

      public static final Config 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

      public static final Config 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 blockShadingEnabled
      Deprecated, for removal: This API element is subject to removal in a future version.
      Controls block shading, excluding block entities.
    • cloudShadingEnabled

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

    • builder

      public static Config.Builder builder()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new builder.
      Returns:
      a new builder
    • builder

      public static Config.Builder builder(Config config)
      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

      public boolean equals(Object obj)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      hashCode in class Object
    • isBlockShadingEnabled

      public boolean isBlockShadingEnabled()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns true if block shading is enabled; false otherwise.
      Returns:
      true if block shading is enabled; false otherwise
    • isCloudShadingEnabled

      public boolean isCloudShadingEnabled()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns true if cloud shading is enabled; false otherwise.
      Returns:
      true if cloud shading is enabled; false otherwise
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class Object