Record Class BundleMetadata
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.providers.BundleMetadata
public record BundleMetadata(List<BundleMetadata.Entry> libraries, List<BundleMetadata.Entry> versions, String mainClass)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBundleMetadata(List<BundleMetadata.Entry> libraries, List<BundleMetadata.Entry> versions, String mainClass) Creates an instance of aBundleMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static @Nullable BundleMetadatafinal inthashCode()Returns a hash code value for this object.Returns the value of thelibrariesrecord component.Returns the value of themainClassrecord component.final StringtoString()Returns a string representation of this record class.versions()Returns the value of theversionsrecord component.
-
Constructor Details
-
BundleMetadata
public BundleMetadata(List<BundleMetadata.Entry> libraries, List<BundleMetadata.Entry> versions, String mainClass) Creates an instance of aBundleMetadatarecord class.- Parameters:
libraries- the value for thelibrariesrecord componentversions- the value for theversionsrecord componentmainClass- the value for themainClassrecord component
-
-
Method Details
-
fromJar
- Throws:
IOException
-
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). -
libraries
Returns the value of thelibrariesrecord component.- Returns:
- the value of the
librariesrecord component
-
versions
Returns the value of theversionsrecord component.- Returns:
- the value of the
versionsrecord component
-
mainClass
Returns the value of themainClassrecord component.- Returns:
- the value of the
mainClassrecord component
-