Record Class ConfigOverrides
java.lang.Object
java.lang.Record
com.wildfire.client.config.ConfigOverrides
public record ConfigOverrides(ConfigValue<Boolean> armorPhysics, ConfigValue<Boolean> disableRendering, ConfigValue<Boolean> disableSoundReplacement)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConfigOverrides(boolean armorPhysics, boolean disableRendering, boolean disableSoundReplacement) ConfigOverrides(ConfigValue<Boolean> armorPhysics, ConfigValue<Boolean> disableRendering, ConfigValue<Boolean> disableSoundReplacement) Creates an instance of aConfigOverridesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thearmorPhysicsrecord component.Returns the value of thedisableRenderingrecord component.Returns the value of thedisableSoundReplacementrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
ARMOR_PHYSICS_OVERRIDE
-
DISABLE_RENDERING
-
DISABLE_SOUND_REPLACEMENT
-
CODEC
-
-
Constructor Details
-
ConfigOverrides
public ConfigOverrides(boolean armorPhysics, boolean disableRendering, boolean disableSoundReplacement) -
ConfigOverrides
public ConfigOverrides(ConfigValue<Boolean> armorPhysics, ConfigValue<Boolean> disableRendering, ConfigValue<Boolean> disableSoundReplacement) Creates an instance of aConfigOverridesrecord class.- Parameters:
armorPhysics- the value for thearmorPhysicsrecord componentdisableRendering- the value for thedisableRenderingrecord componentdisableSoundReplacement- the value for thedisableSoundReplacementrecord component
-
-
Method Details
-
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 withObjects::equals(Object,Object). -
armorPhysics
Returns the value of thearmorPhysicsrecord component.- Returns:
- the value of the
armorPhysicsrecord component
-
disableRendering
Returns the value of thedisableRenderingrecord component.- Returns:
- the value of the
disableRenderingrecord component
-
disableSoundReplacement
Returns the value of thedisableSoundReplacementrecord component.- Returns:
- the value of the
disableSoundReplacementrecord component
-