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
Modifier and TypeFieldDescriptionprivate final org.apache.maven.artifact.versioning.ArtifactVersion
The field for theartifactVersion
record component.private final net.minecraftforge.forgespi.language.IModInfo
The field for themodInfo
record component.private final org.apache.maven.artifact.versioning.VersionRange
The field for theversionRange
record component. -
Constructor Summary
ModifierConstructorDescriptionprivate
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 aModWithVersionRange
record class. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.maven.artifact.versioning.ArtifactVersion
Returns the value of theartifactVersion
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.net.minecraftforge.forgespi.language.IModInfo
modInfo()
Returns the value of themodInfo
record component.final String
toString()
Returns a string representation of this record class.org.apache.maven.artifact.versioning.VersionRange
Returns the value of theversionRange
record component.
-
Field Details
-
modInfo
private final net.minecraftforge.forgespi.language.IModInfo modInfoThe field for themodInfo
record component. -
versionRange
private final org.apache.maven.artifact.versioning.VersionRange versionRangeThe field for theversionRange
record component. -
artifactVersion
private final org.apache.maven.artifact.versioning.ArtifactVersion artifactVersionThe field for theartifactVersion
record 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 aModWithVersionRange
record class.- Parameters:
modInfo
- the value for themodInfo
record componentversionRange
- the value for theversionRange
record componentartifactVersion
- the value for theartifactVersion
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)
. -
modInfo
public net.minecraftforge.forgespi.language.IModInfo modInfo()Returns the value of themodInfo
record component.- Returns:
- the value of the
modInfo
record component
-
versionRange
public org.apache.maven.artifact.versioning.VersionRange versionRange()Returns the value of theversionRange
record component.- Returns:
- the value of the
versionRange
record component
-
artifactVersion
public org.apache.maven.artifact.versioning.ArtifactVersion artifactVersion()Returns the value of theartifactVersion
record component.- Returns:
- the value of the
artifactVersion
record component
-