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(LambdaMcDevGradleExtensionImpl ext, org.gradle.api.tasks.SourceSet sourceSet, org.gradle.api.artifacts.Configuration mappingsConfiguration, org.gradle.api.tasks.TaskProvider<net.fabricmc.loom.build.nesting.NestableJarGenerationTask> processIncludeJars)
extends Record
implements MojmapRemapping
-
Constructor Summary
ConstructorsConstructorDescriptionMojmapRemappingImpl(LambdaMcDevGradleExtensionImpl ext, org.gradle.api.tasks.SourceSet sourceSet, org.gradle.api.artifacts.Configuration mappingsConfiguration, org.gradle.api.tasks.TaskProvider<net.fabricmc.loom.build.nesting.NestableJarGenerationTask> processIncludeJars) 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.org.gradle.api.tasks.TaskProvider<net.fabricmc.loom.build.nesting.NestableJarGenerationTask> Returns the value of theprocessIncludeJarsrecord component.@NotNull org.gradle.api.provider.Provider<net.fabricmc.loom.task.RemapJarTask> registerRemap(String taskName, org.gradle.api.Action<net.fabricmc.loom.task.RemapJarTask> action) @NotNull org.gradle.api.provider.Provider<net.fabricmc.loom.task.RemapSourcesJarTask> registerSourcesRemap(String taskName, org.gradle.api.Action<net.fabricmc.loom.task.RemapSourcesJarTask> action) 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.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.lambdaurora.mcdev.api.MojmapRemapping
registerRemap, registerRemap, registerSourcesRemap, registerSourcesRemap
-
Constructor Details
-
MojmapRemappingImpl
public MojmapRemappingImpl(LambdaMcDevGradleExtensionImpl ext, org.gradle.api.tasks.SourceSet sourceSet, org.gradle.api.artifacts.Configuration mappingsConfiguration, org.gradle.api.tasks.TaskProvider<net.fabricmc.loom.build.nesting.NestableJarGenerationTask> processIncludeJars) Creates an instance of aMojmapRemappingImplrecord class.- Parameters:
ext- the value for theextrecord componentsourceSet- the value for thesourceSetrecord componentmappingsConfiguration- the value for themappingsConfigurationrecord componentprocessIncludeJars- the value for theprocessIncludeJarsrecord component
-
-
Method Details
-
registerRemap
@NotNull public @NotNull org.gradle.api.provider.Provider<net.fabricmc.loom.task.RemapJarTask> registerRemap(String taskName, org.gradle.api.Action<net.fabricmc.loom.task.RemapJarTask> action) - Specified by:
registerRemapin interfaceMojmapRemapping
-
registerSourcesRemap
@NotNull public @NotNull org.gradle.api.provider.Provider<net.fabricmc.loom.task.RemapSourcesJarTask> registerSourcesRemap(String taskName, org.gradle.api.Action<net.fabricmc.loom.task.RemapSourcesJarTask> action) - Specified by:
registerSourcesRemapin interfaceMojmapRemapping
-
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
-
processIncludeJars
public org.gradle.api.tasks.TaskProvider<net.fabricmc.loom.build.nesting.NestableJarGenerationTask> processIncludeJars()Returns the value of theprocessIncludeJarsrecord component.- Returns:
- the value of the
processIncludeJarsrecord component
-