Record Class ModFileParser.MixinConfig
java.lang.Object
java.lang.Record
net.neoforged.fml.loading.moddiscovery.ModFileParser.MixinConfig
- Record Components:
config- The name of the mixin configuration.requiredMods- The mod ids that are required for this mixin configuration to be loaded. If empty, will be loaded regardless.
- Enclosing class:
ModFileParser
public static record ModFileParser.MixinConfig(String config, List<String> requiredMods)
extends Record
Represents a potential mixin configuration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theconfigrecord component.The field for therequiredModsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMixinConfig(String config, List<String> requiredMods) Creates an instance of aMixinConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionconfig()Returns the value of theconfigrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therequiredModsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
config
The field for theconfigrecord component. -
requiredMods
The field for therequiredModsrecord component.
-
-
Constructor Details
-
MixinConfig
Creates an instance of aMixinConfigrecord class.- Parameters:
config- the value for theconfigrecord componentrequiredMods- the value for therequiredModsrecord 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 withObjects::equals(Object,Object). -
config
Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-
requiredMods
Returns the value of therequiredModsrecord component.- Returns:
- the value of the
requiredModsrecord component
-