Record Class Config
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theblockShadingEnabledrecord component.private final booleanThe field for thecloudShadingEnabledrecord component.static final com.mojang.serialization.MapCodec<Config> private final booleanThe field for theentityShadingEnabledrecord component.static final com.mojang.serialization.MapCodec<Config> static final intThe configuration format version.Fields inherited from interface IConfig
MIN_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionConfig(boolean blockShadingEnabled, boolean cloudShadingEnabled, boolean entityShadingEnabled) Creates an instance of aConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theblockShadingEnabledrecord component.booleanReturns the value of thecloudShadingEnabledrecord component.booleanReturns the value of theentityShadingEnabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.private static com.mojang.serialization.MapCodec<Config> newCodec(CodecFieldBuilder fieldBuilder) final StringtoString()Returns a string representation of this record class.intversion()The configuration format version.
-
Field Details
-
blockShadingEnabled
private final boolean blockShadingEnabledThe field for theblockShadingEnabledrecord component. -
cloudShadingEnabled
private final boolean cloudShadingEnabledThe field for thecloudShadingEnabledrecord component. -
entityShadingEnabled
private final boolean entityShadingEnabledThe field for theentityShadingEnabledrecord component. -
VERSION
public static final int VERSIONThe configuration format version.- See Also:
- Implementation Requirements:
- The version must be
0.
-
LENIENT_CODEC
-
CODEC
-
-
Constructor Details
-
Config
public Config(boolean blockShadingEnabled, boolean cloudShadingEnabled, boolean entityShadingEnabled) Creates an instance of aConfigrecord class.- Parameters:
blockShadingEnabled- the value for theblockShadingEnabledrecord componentcloudShadingEnabled- the value for thecloudShadingEnabledrecord componententityShadingEnabled- the value for theentityShadingEnabledrecord component
-
-
Method Details
-
version
-
newCodec
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
blockShadingEnabled
public boolean blockShadingEnabled()Returns the value of theblockShadingEnabledrecord component.- Returns:
- the value of the
blockShadingEnabledrecord component
-
cloudShadingEnabled
public boolean cloudShadingEnabled()Returns the value of thecloudShadingEnabledrecord component.- Returns:
- the value of the
cloudShadingEnabledrecord component
-
entityShadingEnabled
public boolean entityShadingEnabled()Returns the value of theentityShadingEnabledrecord component.- Returns:
- the value of the
entityShadingEnabledrecord component
-