Record Class DebofConfiguration

java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.processors.speccontext.DebofConfiguration

public record DebofConfiguration(String name, List<Function<org.gradle.api.tasks.SourceSet,String>> configurationFunctions) extends Record
This mess is created out of the need to resolve the compile/runtime dependencies, without using the actual runtime/compile classpath. As we need to add the minecraft jar to it later (based on the compile/runtime dependencies).
  • Field Details

  • Constructor Details

    • DebofConfiguration

      public DebofConfiguration(String name, List<Function<org.gradle.api.tasks.SourceSet,String>> configurationFunctions)
      Creates an instance of a DebofConfiguration record class.
      Parameters:
      name - the value for the name record component
      configurationFunctions - the value for the configurationFunctions record component
  • Method Details

    • getConfiguration

      public org.gradle.api.artifacts.Configuration getConfiguration(org.gradle.api.Project project, DebofConfiguration.TargetSourceSet targetSourceSet)
    • getConfigurations

      public List<org.gradle.api.artifacts.Configuration> getConfigurations(org.gradle.api.Project project)
    • create

      public static void create(org.gradle.api.Project project)
    • createResolveConfiguration

      public void createResolveConfiguration(org.gradle.api.Project project)
    • 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.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • configurationFunctions

      public List<Function<org.gradle.api.tasks.SourceSet,String>> configurationFunctions()
      Returns the value of the configurationFunctions record component.
      Returns:
      the value of the configurationFunctions record component