java.lang.Object
java.lang.Record
io.github.startsmercury.simply_no_shading.impl.client.config.v1.ConfigData
Record Components:
shadeBlocks - Should non-entity blocks be shaded.
shadeClouds - Should clouds be shaded.
shadeEntities - Should entities and block entities be shaded.

public record ConfigData(boolean shadeBlocks, boolean shadeClouds, boolean shadeEntities) extends Record
The configuration data.
Since:
8.0.0
  • Field Details

    • shadeBlocks

      private final boolean shadeBlocks
      The field for the shadeBlocks record component.
    • shadeClouds

      private final boolean shadeClouds
      The field for the shadeClouds record component.
    • shadeEntities

      private final boolean shadeEntities
      The field for the shadeEntities record component.
    • DEFAULT

      public static final ConfigData DEFAULT
      All shading types are enabled on vanilla.
    • VANILLA

      public static final ConfigData VANILLA
      Old block lighting from internal shader.
    • INTERNAL_SHADERS

      public static final ConfigData INTERNAL_SHADERS
      Simply No Shading defaults disables all shading types.
    • CODEC

      public static final com.mojang.serialization.Codec<ConfigData> CODEC
  • Constructor Details

    • ConfigData

      public ConfigData(boolean shadeBlocks, boolean shadeClouds, boolean shadeEntities)
      Creates an instance of a ConfigData record class.
      Parameters:
      shadeBlocks - the value for the shadeBlocks record component
      shadeClouds - the value for the shadeClouds record component
      shadeEntities - the value for the shadeEntities record component
  • Method Details

    • 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.
    • shadeBlocks

      public boolean shadeBlocks()
      Returns the value of the shadeBlocks record component.
      Returns:
      the value of the shadeBlocks record component
    • shadeClouds

      public boolean shadeClouds()
      Returns the value of the shadeClouds record component.
      Returns:
      the value of the shadeClouds record component
    • shadeEntities

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