java.lang.Object
java.lang.Record
io.github.startsmercury.simply_no_shading.impl.client.config.v0.Config
Record Components:
blockShadingEnabled - Should non-entity blocks be shaded.
cloudShadingEnabled - Should clouds be shaded.
entityShadingEnabled - Should entities and block entities be shaded.
All Implemented Interfaces:
IConfig

public record Config(boolean blockShadingEnabled, boolean cloudShadingEnabled, boolean entityShadingEnabled) extends Record implements IConfig
The Simply No Shading modification configuration, format version 0.
Since:
8.0.0
  • Field Details

    • blockShadingEnabled

      private final boolean blockShadingEnabled
      The field for the blockShadingEnabled record component.
    • cloudShadingEnabled

      private final boolean cloudShadingEnabled
      The field for the cloudShadingEnabled record component.
    • entityShadingEnabled

      private final boolean entityShadingEnabled
      The field for the entityShadingEnabled record component.
    • VERSION

      public static final int VERSION
      The configuration format version.
      See Also:
      Implementation Requirements:
      The version must be 0.
    • LENIENT_CODEC

      public static final com.mojang.serialization.MapCodec<Config> LENIENT_CODEC
    • CODEC

      public static final com.mojang.serialization.MapCodec<Config> CODEC
  • Constructor Details

    • Config

      public Config(boolean blockShadingEnabled, boolean cloudShadingEnabled, boolean entityShadingEnabled)
      Creates an instance of a Config record class.
      Parameters:
      blockShadingEnabled - the value for the blockShadingEnabled record component
      cloudShadingEnabled - the value for the cloudShadingEnabled record component
      entityShadingEnabled - the value for the entityShadingEnabled record component
  • Method Details

    • version

      public int version()
      Description copied from interface: IConfig
      The configuration format version.
      Specified by:
      version in interface IConfig
      Returns:
      The config version.
      Implementation Requirements:
      The version must be 0.
    • newCodec

      private static com.mojang.serialization.MapCodec<Config> newCodec(CodecFieldBuilder fieldBuilder)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • blockShadingEnabled

      public boolean blockShadingEnabled()
      Returns the value of the blockShadingEnabled record component.
      Returns:
      the value of the blockShadingEnabled record component
    • cloudShadingEnabled

      public boolean cloudShadingEnabled()
      Returns the value of the cloudShadingEnabled record component.
      Returns:
      the value of the cloudShadingEnabled record component
    • entityShadingEnabled

      public boolean entityShadingEnabled()
      Returns the value of the entityShadingEnabled record component.
      Returns:
      the value of the entityShadingEnabled record component