Record Class JarContentsModule
java.lang.Object
java.lang.Record
net.neoforged.fml.classloading.JarContentsModule
public record JarContentsModule(JarContents contents, ModuleDescriptor moduleDescriptor)
extends Record
Links
JarContents with how that content will be loaded as a JPMS module.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JarContentsThe field for thecontentsrecord component.private final ModuleDescriptorThe field for themoduleDescriptorrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionJarContentsModule(JarContents contents) JarContentsModule(JarContents contents, ModuleDescriptor moduleDescriptor) Creates an instance of aJarContentsModulerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontents()Returns the value of thecontentsrecord 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 themoduleDescriptorrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
contents
The field for thecontentsrecord component. -
moduleDescriptor
The field for themoduleDescriptorrecord component.
-
-
Constructor Details
-
JarContentsModule
-
JarContentsModule
Creates an instance of aJarContentsModulerecord class.- Parameters:
contents- the value for thecontentsrecord componentmoduleDescriptor- the value for themoduleDescriptorrecord component
-
-
Method Details
-
moduleName
-
toString
-
hashCode
-
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). -
contents
Returns the value of thecontentsrecord component.- Returns:
- the value of the
contentsrecord component
-
moduleDescriptor
Returns the value of themoduleDescriptorrecord component.- Returns:
- the value of the
moduleDescriptorrecord component
-