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 String
The field for theconfig
record component.The field for therequiredMods
record component. -
Constructor Summary
ConstructorsConstructorDescriptionMixinConfig
(String config, List<String> requiredMods) Creates an instance of aMixinConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionconfig()
Returns the value of theconfig
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of therequiredMods
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
config
The field for theconfig
record component. -
requiredMods
The field for therequiredMods
record component.
-
-
Constructor Details
-
MixinConfig
Creates an instance of aMixinConfig
record class.- Parameters:
config
- the value for theconfig
record componentrequiredMods
- the value for therequiredMods
record 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 theconfig
record component.- Returns:
- the value of the
config
record component
-
requiredMods
Returns the value of therequiredMods
record component.- Returns:
- the value of the
requiredMods
record component
-