Record Class FileMappingsLayer
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.providers.mappings.file.FileMappingsLayer
- All Implemented Interfaces:
MappingLayer,AnnotationsLayer,UnpickLayer
public record FileMappingsLayer(Path path, String mappingPath, String fallbackSourceNamespace, String fallbackTargetNamespace, boolean enigma, boolean unpick, boolean annotations, String mergeNamespace, String fallbackUnpickConstants)
extends Record
implements MappingLayer, UnpickLayer, AnnotationsLayer
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.fabricmc.loom.configuration.providers.mappings.extras.unpick.UnpickLayer
UnpickLayer.UnpickData -
Field Summary
Fields inherited from interface net.fabricmc.loom.configuration.providers.mappings.extras.annotations.AnnotationsLayer
ANNOTATIONS_PATH -
Constructor Summary
ConstructorsConstructorDescriptionFileMappingsLayer(Path path, String mappingPath, String fallbackSourceNamespace, String fallbackTargetNamespace, boolean enigma, boolean unpick, boolean annotations, String mergeNamespace, String fallbackUnpickConstants) Creates an instance of aFileMappingsLayerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theannotationsrecord component.List<Class<? extends MappingLayer>> Provides a list of layer classes that this mapping layer depends on.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.@Nullable AnnotationsData@Nullable String@Nullable UnpickLayer.UnpickDatafinal inthashCode()Returns a hash code value for this object.Returns the value of themappingPathrecord component.Returns the value of themergeNamespacerecord component.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.booleanunpick()Returns the value of theunpickrecord component.voidvisit(net.fabricmc.mappingio.MappingVisitor mappingVisitor)
-
Constructor Details
-
FileMappingsLayer
public FileMappingsLayer(Path path, String mappingPath, String fallbackSourceNamespace, String fallbackTargetNamespace, boolean enigma, boolean unpick, boolean annotations, String mergeNamespace, String fallbackUnpickConstants) Creates an instance of aFileMappingsLayerrecord class.- Parameters:
path- the value for thepathrecord 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
-
visit
- Specified by:
visitin interfaceMappingLayer- Throws:
IOException
-
getSourceNamespace
- Specified by:
getSourceNamespacein interfaceMappingLayer
-
dependsOn
Description copied from interface:MappingLayerProvides a list of layer classes that this mapping layer depends on. If such a layer is not present an Exception will be thrown when trying to resolve the layer.- Specified by:
dependsOnin interfaceMappingLayer- Returns:
- A list of MappingLayer classes to depend on.
-
getUnpickData
- Specified by:
getUnpickDatain interfaceUnpickLayer- Throws:
IOException
-
getFallbackConstants
- Specified by:
getFallbackConstantsin interfaceUnpickLayer
-
getAnnotationsData
- Specified by:
getAnnotationsDatain interfaceAnnotationsLayer- Throws:
IOException
-
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 '=='. -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord 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
-