Record Class ClasspathGroup
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.classpathgroups.ClasspathGroup
- All Implemented Interfaces:
Serializable
public record ClasspathGroup(String name, @Nullable String resourceDir, List<String> paths, List<ExternalClasspathGroup> externalGroups)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionClasspathGroup(String name, @Nullable String resourceDir, List<String> paths, List<ExternalClasspathGroup> externalGroups) Creates an instance of aClasspathGrouprecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexternalGroupsrecord component.static List<ClasspathGroup> fromModSettings(Set<ModSettings> modSettings) final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.paths()Returns the value of thepathsrecord component.@Nullable StringReturns the value of theresourceDirrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClasspathGroup
public ClasspathGroup(String name, @Nullable String resourceDir, List<String> paths, List<ExternalClasspathGroup> externalGroups) Creates an instance of aClasspathGrouprecord class.- Parameters:
name- the value for thenamerecord componentresourceDir- the value for theresourceDirrecord componentpaths- the value for thepathsrecord componentexternalGroups- the value for theexternalGroupsrecord component
-
-
Method Details
-
fromModSettings
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
resourceDir
Returns the value of theresourceDirrecord component.- Returns:
- the value of the
resourceDirrecord component
-
paths
Returns the value of thepathsrecord component.- Returns:
- the value of the
pathsrecord component
-
externalGroups
Returns the value of theexternalGroupsrecord component.- Returns:
- the value of the
externalGroupsrecord component
-