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.behaviorVersion- The mixin version whose behavior this configuration requests; if unspecified, the default is provided by FML.
- Enclosing class:
ModFileParser
public static record ModFileParser.MixinConfig(String config, List<String> requiredMods, @Nullable org.apache.maven.artifact.versioning.ArtifactVersion behaviorVersion)
extends Record
Represents a potential mixin configuration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable org.apache.maven.artifact.versioning.ArtifactVersionThe field for thebehaviorVersionrecord component.private final StringThe field for theconfigrecord component.The field for therequiredModsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMixinConfig(String config, List<String> requiredMods, @Nullable org.apache.maven.artifact.versioning.ArtifactVersion behaviorVersion) Creates an instance of aMixinConfigrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable org.apache.maven.artifact.versioning.ArtifactVersionReturns the value of thebehaviorVersionrecord component.config()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. -
behaviorVersion
@Nullable private final @Nullable org.apache.maven.artifact.versioning.ArtifactVersion behaviorVersionThe field for thebehaviorVersionrecord component.
-
-
Constructor Details
-
MixinConfig
public MixinConfig(String config, List<String> requiredMods, @Nullable @Nullable org.apache.maven.artifact.versioning.ArtifactVersion behaviorVersion) Creates an instance of aMixinConfigrecord class.- Parameters:
config- the value for theconfigrecord componentrequiredMods- the value for therequiredModsrecord componentbehaviorVersion- the value for thebehaviorVersionrecord 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
-
behaviorVersion
@Nullable public @Nullable org.apache.maven.artifact.versioning.ArtifactVersion behaviorVersion()Returns the value of thebehaviorVersionrecord component.- Returns:
- the value of the
behaviorVersionrecord component
-