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
ConstructorsConstructorDescriptionModdingDependencies(@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 aModdingDependenciesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ModdingDependenciescreate(org.gradle.api.artifacts.ModuleDependency neoForge, String neoForgeNotation, @Nullable org.gradle.api.artifacts.ModuleDependency neoForm, @Nullable String neoFormNotation, VersionCapabilitiesInternal versionCapabilities) static ModdingDependenciescreateVanillaOnly(org.gradle.api.artifacts.ModuleDependency neoForm, String neoFormNotation) final booleanIndicates whether some other object is "equal to" this one.org.gradle.api.artifacts.ModuleDependencyReturns the value of thegameLibrariesDependencyrecord component.final inthashCode()Returns a hash code value for this object.@Nullable org.gradle.api.artifacts.ModuleDependencyReturns the value of themodulePathDependencyrecord component.@Nullable org.gradle.api.artifacts.ModuleDependencyReturns the value of theneoForgeDependencyrecord component.@Nullable StringReturns the value of theneoForgeDependencyNotationrecord component.@Nullable org.gradle.api.artifacts.ModuleDependencyReturns the value of theneoFormDependencyrecord component.@Nullable StringReturns the value of theneoFormDependencyNotationrecord component.@Nullable org.gradle.api.artifacts.ModuleDependencyReturns the value of therunTypesConfigDependencyrecord component.@Nullable org.gradle.api.artifacts.ModuleDependencyReturns the value of thetestFixturesDependencyrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aModdingDependenciesrecord class.- Parameters:
neoForgeDependency- the value for theneoForgeDependencyrecord componentneoForgeDependencyNotation- the value for theneoForgeDependencyNotationrecord componentneoFormDependency- the value for theneoFormDependencyrecord componentneoFormDependencyNotation- the value for theneoFormDependencyNotationrecord componentgameLibrariesDependency- the value for thegameLibrariesDependencyrecord componentmodulePathDependency- the value for themodulePathDependencyrecord componentrunTypesConfigDependency- the value for therunTypesConfigDependencyrecord componenttestFixturesDependency- the value for thetestFixturesDependencyrecord 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
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). -
neoForgeDependency
@Nullable public @Nullable org.gradle.api.artifacts.ModuleDependency neoForgeDependency()Returns the value of theneoForgeDependencyrecord component.- Returns:
- the value of the
neoForgeDependencyrecord component
-
neoForgeDependencyNotation
Returns the value of theneoForgeDependencyNotationrecord component.- Returns:
- the value of the
neoForgeDependencyNotationrecord component
-
neoFormDependency
@Nullable public @Nullable org.gradle.api.artifacts.ModuleDependency neoFormDependency()Returns the value of theneoFormDependencyrecord component.- Returns:
- the value of the
neoFormDependencyrecord component
-
neoFormDependencyNotation
Returns the value of theneoFormDependencyNotationrecord component.- Returns:
- the value of the
neoFormDependencyNotationrecord component
-
gameLibrariesDependency
public org.gradle.api.artifacts.ModuleDependency gameLibrariesDependency()Returns the value of thegameLibrariesDependencyrecord component.- Returns:
- the value of the
gameLibrariesDependencyrecord component
-
modulePathDependency
@Nullable public @Nullable org.gradle.api.artifacts.ModuleDependency modulePathDependency()Returns the value of themodulePathDependencyrecord component.- Returns:
- the value of the
modulePathDependencyrecord component
-
runTypesConfigDependency
@Nullable public @Nullable org.gradle.api.artifacts.ModuleDependency runTypesConfigDependency()Returns the value of therunTypesConfigDependencyrecord component.- Returns:
- the value of the
runTypesConfigDependencyrecord component
-
testFixturesDependency
@Nullable public @Nullable org.gradle.api.artifacts.ModuleDependency testFixturesDependency()Returns the value of thetestFixturesDependencyrecord component.- Returns:
- the value of the
testFixturesDependencyrecord component
-