Package net.fabricmc.loom.util.fmj
Record Class FabricModJsonSource.SourceSetSource
java.lang.Object
java.lang.Record
net.fabricmc.loom.util.fmj.FabricModJsonSource.SourceSetSource
- All Implemented Interfaces:
FabricModJsonSource
- Enclosing interface:
FabricModJsonSource
public static record FabricModJsonSource.SourceSetSource(org.gradle.api.Project project, org.gradle.api.tasks.SourceSet[] sourceSets)
extends Record
implements FabricModJsonSource
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.fabricmc.loom.util.fmj.FabricModJsonSource
FabricModJsonSource.DirectorySource, FabricModJsonSource.SourceSetSource, FabricModJsonSource.ZipSource -
Constructor Summary
ConstructorsConstructorDescriptionSourceSetSource(org.gradle.api.Project project, org.gradle.api.tasks.SourceSet... sourceSets) Creates an instance of aSourceSetSourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.gradle.api.Projectproject()Returns the value of theprojectrecord component.byte[]org.gradle.api.tasks.SourceSet[]Returns the value of thesourceSetsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SourceSetSource
public SourceSetSource(org.gradle.api.Project project, org.gradle.api.tasks.SourceSet... sourceSets) Creates an instance of aSourceSetSourcerecord class.- Parameters:
project- the value for theprojectrecord componentsourceSets- the value for thesourceSetsrecord component
-
-
Method Details
-
read
- Specified by:
readin interfaceFabricModJsonSource- 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). -
project
public org.gradle.api.Project project()Returns the value of theprojectrecord component.- Returns:
- the value of the
projectrecord component
-
sourceSets
public org.gradle.api.tasks.SourceSet[] sourceSets()Returns the value of thesourceSetsrecord component.- Returns:
- the value of the
sourceSetsrecord component
-