Package dev.lambdaurora.mcdev.ext
Record Class MojmapRemappingImpl
java.lang.Object
java.lang.Record
dev.lambdaurora.mcdev.ext.MojmapRemappingImpl
- All Implemented Interfaces:
MojmapRemapping
public record MojmapRemappingImpl(LambdaMcDevGradleExtension ext, org.gradle.api.tasks.SourceSet sourceSet, org.gradle.api.artifacts.Configuration mappingsConfiguration)
extends Record
implements MojmapRemapping
-
Constructor Summary
ConstructorsConstructorDescriptionMojmapRemappingImpl(LambdaMcDevGradleExtension ext, org.gradle.api.tasks.SourceSet sourceSet, org.gradle.api.artifacts.Configuration mappingsConfiguration) Creates an instance of aMojmapRemappingImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.ext()Returns the value of theextrecord component.final inthashCode()Returns a hash code value for this object.org.gradle.api.artifacts.ConfigurationReturns the value of themappingsConfigurationrecord component.voidsetJarArtifact(Object artifact) voidsetSourcesArtifact(Object artifact) org.gradle.api.tasks.SourceSetReturns the value of thesourceSetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MojmapRemappingImpl
public MojmapRemappingImpl(LambdaMcDevGradleExtension ext, org.gradle.api.tasks.SourceSet sourceSet, org.gradle.api.artifacts.Configuration mappingsConfiguration) Creates an instance of aMojmapRemappingImplrecord class.- Parameters:
ext- the value for theextrecord componentsourceSet- the value for thesourceSetrecord componentmappingsConfiguration- the value for themappingsConfigurationrecord component
-
-
Method Details
-
setJarArtifact
- Specified by:
setJarArtifactin interfaceMojmapRemapping
-
setSourcesArtifact
- Specified by:
setSourcesArtifactin interfaceMojmapRemapping
-
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). -
ext
Returns the value of theextrecord component.- Returns:
- the value of the
extrecord component
-
sourceSet
public org.gradle.api.tasks.SourceSet sourceSet()Returns the value of thesourceSetrecord component.- Specified by:
sourceSetin interfaceMojmapRemapping- Returns:
- the value of the
sourceSetrecord component
-
mappingsConfiguration
public org.gradle.api.artifacts.Configuration mappingsConfiguration()Returns the value of themappingsConfigurationrecord component.- Specified by:
mappingsConfigurationin interfaceMojmapRemapping- Returns:
- the value of the
mappingsConfigurationrecord component
-