Record Class FileMappingsSpec
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.providers.mappings.file.FileMappingsSpec
- All Implemented Interfaces:
MappingsSpec<FileMappingsLayer>
public record FileMappingsSpec(FileSpec fileSpec, String mappingPath, Optional<String> fallbackSourceNamespace, String fallbackTargetNamespace, boolean enigma, boolean unpick, boolean annotations, Optional<String> mergeNamespace, Optional<String> fallbackUnpickConstants)
extends Record
implements MappingsSpec<FileMappingsLayer>
-
Constructor Summary
ConstructorsConstructorDescriptionFileMappingsSpec(FileSpec fileSpec, String mappingPath, Optional<String> fallbackSourceNamespace, String fallbackTargetNamespace, boolean enigma, boolean unpick, boolean annotations, Optional<String> mergeNamespace, Optional<String> fallbackUnpickConstants) Creates an instance of aFileMappingsSpecrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theannotationsrecord component.createLayer(MappingContext context) booleanenigma()Returns the value of theenigmarecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefallbackSourceNamespacerecord component.Returns the value of thefallbackTargetNamespacerecord component.Returns the value of thefallbackUnpickConstantsrecord component.fileSpec()Returns the value of thefileSpecrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themappingPathrecord component.Returns the value of themergeNamespacerecord component.final StringtoString()Returns a string representation of this record class.booleanunpick()Returns the value of theunpickrecord component.
-
Constructor Details
-
FileMappingsSpec
public FileMappingsSpec(FileSpec fileSpec, String mappingPath, Optional<String> fallbackSourceNamespace, String fallbackTargetNamespace, boolean enigma, boolean unpick, boolean annotations, Optional<String> mergeNamespace, Optional<String> fallbackUnpickConstants) Creates an instance of aFileMappingsSpecrecord class.- Parameters:
fileSpec- the value for thefileSpecrecord componentmappingPath- the value for themappingPathrecord componentfallbackSourceNamespace- the value for thefallbackSourceNamespacerecord componentfallbackTargetNamespace- the value for thefallbackTargetNamespacerecord componentenigma- the value for theenigmarecord componentunpick- the value for theunpickrecord componentannotations- the value for theannotationsrecord componentmergeNamespace- the value for themergeNamespacerecord componentfallbackUnpickConstants- the value for thefallbackUnpickConstantsrecord component
-
-
Method Details
-
createLayer
- Specified by:
createLayerin interfaceMappingsSpec<FileMappingsLayer>
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
fileSpec
Returns the value of thefileSpecrecord component.- Returns:
- the value of the
fileSpecrecord component
-
mappingPath
Returns the value of themappingPathrecord component.- Returns:
- the value of the
mappingPathrecord component
-
fallbackSourceNamespace
Returns the value of thefallbackSourceNamespacerecord component.- Returns:
- the value of the
fallbackSourceNamespacerecord component
-
fallbackTargetNamespace
Returns the value of thefallbackTargetNamespacerecord component.- Returns:
- the value of the
fallbackTargetNamespacerecord component
-
enigma
public boolean enigma()Returns the value of theenigmarecord component.- Returns:
- the value of the
enigmarecord component
-
unpick
public boolean unpick()Returns the value of theunpickrecord component.- Returns:
- the value of the
unpickrecord component
-
annotations
public boolean annotations()Returns the value of theannotationsrecord component.- Returns:
- the value of the
annotationsrecord component
-
mergeNamespace
Returns the value of themergeNamespacerecord component.- Returns:
- the value of the
mergeNamespacerecord component
-
fallbackUnpickConstants
Returns the value of thefallbackUnpickConstantsrecord component.- Returns:
- the value of the
fallbackUnpickConstantsrecord component
-