Record Class JarInJarDependencyLocator.ModWithVersionRange
java.lang.Object
java.lang.Record
net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator.ModWithVersionRange
- Enclosing class:
- JarInJarDependencyLocator
private static record JarInJarDependencyLocator.ModWithVersionRange(net.minecraftforge.forgespi.language.IModInfo modInfo, org.apache.maven.artifact.versioning.VersionRange versionRange, org.apache.maven.artifact.versioning.ArtifactVersion artifactVersion)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.maven.artifact.versioning.ArtifactVersionThe field for theartifactVersionrecord component.private final net.minecraftforge.forgespi.language.IModInfoThe field for themodInforecord component.private final org.apache.maven.artifact.versioning.VersionRangeThe field for theversionRangerecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateModWithVersionRange(net.minecraftforge.forgespi.language.IModInfo modInfo, org.apache.maven.artifact.versioning.VersionRange versionRange, org.apache.maven.artifact.versioning.ArtifactVersion artifactVersion) Creates an instance of aModWithVersionRangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.maven.artifact.versioning.ArtifactVersionReturns the value of theartifactVersionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraftforge.forgespi.language.IModInfomodInfo()Returns the value of themodInforecord component.final StringtoString()Returns a string representation of this record class.org.apache.maven.artifact.versioning.VersionRangeReturns the value of theversionRangerecord component.
-
Field Details
-
modInfo
private final net.minecraftforge.forgespi.language.IModInfo modInfoThe field for themodInforecord component. -
versionRange
private final org.apache.maven.artifact.versioning.VersionRange versionRangeThe field for theversionRangerecord component. -
artifactVersion
private final org.apache.maven.artifact.versioning.ArtifactVersion artifactVersionThe field for theartifactVersionrecord component.
-
-
Constructor Details
-
ModWithVersionRange
private ModWithVersionRange(net.minecraftforge.forgespi.language.IModInfo modInfo, org.apache.maven.artifact.versioning.VersionRange versionRange, org.apache.maven.artifact.versioning.ArtifactVersion artifactVersion) Creates an instance of aModWithVersionRangerecord class.- Parameters:
modInfo- the value for themodInforecord componentversionRange- the value for theversionRangerecord componentartifactVersion- the value for theartifactVersionrecord 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). -
modInfo
public net.minecraftforge.forgespi.language.IModInfo modInfo()Returns the value of themodInforecord component.- Returns:
- the value of the
modInforecord component
-
versionRange
public org.apache.maven.artifact.versioning.VersionRange versionRange()Returns the value of theversionRangerecord component.- Returns:
- the value of the
versionRangerecord component
-
artifactVersion
public org.apache.maven.artifact.versioning.ArtifactVersion artifactVersion()Returns the value of theartifactVersionrecord component.- Returns:
- the value of the
artifactVersionrecord component
-