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 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 a MojmapRemappingImpl record class.
      Parameters:
      ext - the value for the ext record component
      sourceSet - the value for the sourceSet record component
      mappingsConfiguration - the value for the mappingsConfiguration record component
      processIncludeJars - the value for the processIncludeJars record 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:
      registerRemap in interface MojmapRemapping
    • 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:
      registerSourcesRemap in interface MojmapRemapping
    • setJarArtifact

      public void setJarArtifact(Object artifact)
      Specified by:
      setJarArtifact in interface MojmapRemapping
    • setSourcesArtifact

      public void setSourcesArtifact(Object artifact)
      Specified by:
      setSourcesArtifact in interface MojmapRemapping
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • ext

      Returns the value of the ext record component.
      Returns:
      the value of the ext record component
    • sourceSet

      public org.gradle.api.tasks.SourceSet sourceSet()
      Returns the value of the sourceSet record component.
      Specified by:
      sourceSet in interface MojmapRemapping
      Returns:
      the value of the sourceSet record component
    • mappingsConfiguration

      public org.gradle.api.artifacts.Configuration mappingsConfiguration()
      Returns the value of the mappingsConfiguration record component.
      Specified by:
      mappingsConfiguration in interface MojmapRemapping
      Returns:
      the value of the mappingsConfiguration record component
    • processIncludeJars

      public org.gradle.api.tasks.TaskProvider<net.fabricmc.loom.build.nesting.NestableJarGenerationTask> processIncludeJars()
      Returns the value of the processIncludeJars record component.
      Returns:
      the value of the processIncludeJars record component