Record Class ModdingDependencies

java.lang.Object
java.lang.Record
net.neoforged.moddevgradle.internal.ModdingDependencies

public record ModdingDependencies(@Nullable org.gradle.api.artifacts.ModuleDependency neoForgeDependency, @Nullable String neoForgeDependencyNotation, @Nullable org.gradle.api.artifacts.ModuleDependency neoFormDependency, @Nullable String neoFormDependencyNotation, org.gradle.api.artifacts.ModuleDependency gameLibrariesDependency, @Nullable org.gradle.api.artifacts.ModuleDependency modulePathDependency, @Nullable org.gradle.api.artifacts.ModuleDependency runTypesConfigDependency, @Nullable org.gradle.api.artifacts.ModuleDependency testFixturesDependency) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    ModdingDependencies(@Nullable org.gradle.api.artifacts.ModuleDependency neoForgeDependency, @Nullable String neoForgeDependencyNotation, @Nullable org.gradle.api.artifacts.ModuleDependency neoFormDependency, @Nullable String neoFormDependencyNotation, org.gradle.api.artifacts.ModuleDependency gameLibrariesDependency, @Nullable org.gradle.api.artifacts.ModuleDependency modulePathDependency, @Nullable org.gradle.api.artifacts.ModuleDependency runTypesConfigDependency, @Nullable org.gradle.api.artifacts.ModuleDependency testFixturesDependency)
    Creates an instance of a ModdingDependencies record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(org.gradle.api.artifacts.ModuleDependency neoForge, String neoForgeNotation, @Nullable org.gradle.api.artifacts.ModuleDependency neoForm, @Nullable String neoFormNotation, VersionCapabilitiesInternal versionCapabilities)
     
    createVanillaOnly(org.gradle.api.artifacts.ModuleDependency neoForm, String neoFormNotation)
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    org.gradle.api.artifacts.ModuleDependency
    Returns the value of the gameLibrariesDependency record component.
    final int
    Returns a hash code value for this object.
    @Nullable org.gradle.api.artifacts.ModuleDependency
    Returns the value of the modulePathDependency record component.
    @Nullable org.gradle.api.artifacts.ModuleDependency
    Returns the value of the neoForgeDependency record component.
    @Nullable String
    Returns the value of the neoForgeDependencyNotation record component.
    @Nullable org.gradle.api.artifacts.ModuleDependency
    Returns the value of the neoFormDependency record component.
    @Nullable String
    Returns the value of the neoFormDependencyNotation record component.
    @Nullable org.gradle.api.artifacts.ModuleDependency
    Returns the value of the runTypesConfigDependency record component.
    @Nullable org.gradle.api.artifacts.ModuleDependency
    Returns the value of the testFixturesDependency record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ModdingDependencies

      public ModdingDependencies(@Nullable @Nullable org.gradle.api.artifacts.ModuleDependency neoForgeDependency, @Nullable @Nullable String neoForgeDependencyNotation, @Nullable @Nullable org.gradle.api.artifacts.ModuleDependency neoFormDependency, @Nullable @Nullable String neoFormDependencyNotation, org.gradle.api.artifacts.ModuleDependency gameLibrariesDependency, @Nullable @Nullable org.gradle.api.artifacts.ModuleDependency modulePathDependency, @Nullable @Nullable org.gradle.api.artifacts.ModuleDependency runTypesConfigDependency, @Nullable @Nullable org.gradle.api.artifacts.ModuleDependency testFixturesDependency)
      Creates an instance of a ModdingDependencies record class.
      Parameters:
      neoForgeDependency - the value for the neoForgeDependency record component
      neoForgeDependencyNotation - the value for the neoForgeDependencyNotation record component
      neoFormDependency - the value for the neoFormDependency record component
      neoFormDependencyNotation - the value for the neoFormDependencyNotation record component
      gameLibrariesDependency - the value for the gameLibrariesDependency record component
      modulePathDependency - the value for the modulePathDependency record component
      runTypesConfigDependency - the value for the runTypesConfigDependency record component
      testFixturesDependency - the value for the testFixturesDependency record component
  • Method Details

    • create

      public static ModdingDependencies create(org.gradle.api.artifacts.ModuleDependency neoForge, String neoForgeNotation, @Nullable @Nullable org.gradle.api.artifacts.ModuleDependency neoForm, @Nullable @Nullable String neoFormNotation, VersionCapabilitiesInternal versionCapabilities)
    • createVanillaOnly

      public static ModdingDependencies createVanillaOnly(org.gradle.api.artifacts.ModuleDependency neoForm, String neoFormNotation)
    • 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.
    • neoForgeDependency

      @Nullable public @Nullable org.gradle.api.artifacts.ModuleDependency neoForgeDependency()
      Returns the value of the neoForgeDependency record component.
      Returns:
      the value of the neoForgeDependency record component
    • neoForgeDependencyNotation

      @Nullable public @Nullable String neoForgeDependencyNotation()
      Returns the value of the neoForgeDependencyNotation record component.
      Returns:
      the value of the neoForgeDependencyNotation record component
    • neoFormDependency

      @Nullable public @Nullable org.gradle.api.artifacts.ModuleDependency neoFormDependency()
      Returns the value of the neoFormDependency record component.
      Returns:
      the value of the neoFormDependency record component
    • neoFormDependencyNotation

      @Nullable public @Nullable String neoFormDependencyNotation()
      Returns the value of the neoFormDependencyNotation record component.
      Returns:
      the value of the neoFormDependencyNotation record component
    • gameLibrariesDependency

      public org.gradle.api.artifacts.ModuleDependency gameLibrariesDependency()
      Returns the value of the gameLibrariesDependency record component.
      Returns:
      the value of the gameLibrariesDependency record component
    • modulePathDependency

      @Nullable public @Nullable org.gradle.api.artifacts.ModuleDependency modulePathDependency()
      Returns the value of the modulePathDependency record component.
      Returns:
      the value of the modulePathDependency record component
    • runTypesConfigDependency

      @Nullable public @Nullable org.gradle.api.artifacts.ModuleDependency runTypesConfigDependency()
      Returns the value of the runTypesConfigDependency record component.
      Returns:
      the value of the runTypesConfigDependency record component
    • testFixturesDependency

      @Nullable public @Nullable org.gradle.api.artifacts.ModuleDependency testFixturesDependency()
      Returns the value of the testFixturesDependency record component.
      Returns:
      the value of the testFixturesDependency record component