Record Class ConfigData
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ConfigData> static final ConfigDataAll shading types are enabled on vanilla.static final ConfigDataSimply No Shading defaults disables all shading types.private final booleanThe field for theshadeBlocksrecord component.private final booleanThe field for theshadeCloudsrecord component.private final booleanThe field for theshadeEntitiesrecord component.static final ConfigDataOld block lighting from internal shader. -
Constructor Summary
ConstructorsConstructorDescriptionConfigData(boolean shadeBlocks, boolean shadeClouds, boolean shadeEntities) Creates an instance of aConfigDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theshadeBlocksrecord component.booleanReturns the value of theshadeCloudsrecord component.booleanReturns the value of theshadeEntitiesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
shadeBlocks
private final boolean shadeBlocksThe field for theshadeBlocksrecord component. -
shadeClouds
private final boolean shadeCloudsThe field for theshadeCloudsrecord component. -
shadeEntities
private final boolean shadeEntitiesThe field for theshadeEntitiesrecord component. -
DEFAULT
All shading types are enabled on vanilla. -
VANILLA
Old block lighting from internal shader. -
INTERNAL_SHADERS
Simply No Shading defaults disables all shading types. -
CODEC
-
-
Constructor Details
-
ConfigData
public ConfigData(boolean shadeBlocks, boolean shadeClouds, boolean shadeEntities) Creates an instance of aConfigDatarecord class.- Parameters:
shadeBlocks- the value for theshadeBlocksrecord componentshadeClouds- the value for theshadeCloudsrecord componentshadeEntities- the value for theshadeEntitiesrecord component
-
-
Method Details
-
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. -
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. -
equals
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 '=='. -
shadeBlocks
public boolean shadeBlocks()Returns the value of theshadeBlocksrecord component.- Returns:
- the value of the
shadeBlocksrecord component
-
shadeClouds
public boolean shadeClouds()Returns the value of theshadeCloudsrecord component.- Returns:
- the value of the
shadeCloudsrecord component
-
shadeEntities
public boolean shadeEntities()Returns the value of theshadeEntitiesrecord component.- Returns:
- the value of the
shadeEntitiesrecord component
-