Record Class DataFileCollections
java.lang.Object
java.lang.Record
net.neoforged.moddevgradle.internal.DataFileCollections
@Internal
public record DataFileCollections(DataFileCollections.CollectionWrapper accessTransformers, DataFileCollections.CollectionWrapper interfaceInjectionData)
extends Record
Access Transformers and Interface Injection Data are treated in a common way as "collections of data files",
which can be declared via a
DSL, and have an associated configuration for internal
use by the plugin and the publication of these files.
This factory constructs these pairs.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDataFileCollections(DataFileCollections.CollectionWrapper accessTransformers, DataFileCollections.CollectionWrapper interfaceInjectionData) Creates an instance of aDataFileCollectionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessTransformersrecord component.static DataFileCollectionscreate(org.gradle.api.Project project) Constructs the default data file collections for access transformers and intrface injection data with sensible defaults.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinterfaceInjectionDatarecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CONFIGURATION_ACCESS_TRANSFORMERS
- See Also:
-
CONFIGURATION_INTERFACE_INJECTION_DATA
- See Also:
-
-
Constructor Details
-
DataFileCollections
public DataFileCollections(DataFileCollections.CollectionWrapper accessTransformers, DataFileCollections.CollectionWrapper interfaceInjectionData) Creates an instance of aDataFileCollectionsrecord class.- Parameters:
accessTransformers- the value for theaccessTransformersrecord componentinterfaceInjectionData- the value for theinterfaceInjectionDatarecord component
-
-
Method Details
-
create
Constructs the default data file collections for access transformers and intrface injection data with sensible defaults. -
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). -
accessTransformers
Returns the value of theaccessTransformersrecord component.- Returns:
- the value of the
accessTransformersrecord component
-
interfaceInjectionData
Returns the value of theinterfaceInjectionDatarecord component.- Returns:
- the value of the
interfaceInjectionDatarecord component
-