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).
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<DebofConfiguration> static final DebofConfigurationstatic final DebofConfiguration -
Constructor Summary
ConstructorsConstructorDescriptionDebofConfiguration(String name, List<Function<org.gradle.api.tasks.SourceSet, String>> configurationFunctions) Creates an instance of aDebofConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfigurationFunctionsrecord component.static voidcreate(org.gradle.api.Project project) voidcreateResolveConfiguration(org.gradle.api.Project project) final booleanIndicates whether some other object is "equal to" this one.org.gradle.api.artifacts.ConfigurationgetConfiguration(org.gradle.api.Project project, DebofConfiguration.TargetSourceSet targetSourceSet) List<org.gradle.api.artifacts.Configuration> getConfigurations(org.gradle.api.Project project) final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
COMPILE
-
RUNTIME
-
ALL
-
-
Constructor Details
-
DebofConfiguration
public DebofConfiguration(String name, List<Function<org.gradle.api.tasks.SourceSet, String>> configurationFunctions) Creates an instance of aDebofConfigurationrecord class.- Parameters:
name- the value for thenamerecord componentconfigurationFunctions- the value for theconfigurationFunctionsrecord 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
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
configurationFunctions
Returns the value of theconfigurationFunctionsrecord component.- Returns:
- the value of the
configurationFunctionsrecord component
-