Class FileMappingsSpecBuilderImpl
- All Implemented Interfaces:
FileMappingsSpecBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()static FileMappingsSpecBuilderImplMarks that the zip file contains annotation data.Marks that the zip file contains unpick data.Marks that the file contains Enigma mappings.fallbackNamespaces(String sourceNamespace, String targetNamespace) Sets the fallback namespaces.mappingPath(String mappingPath) Sets the mapping path inside a zip or jar.mergeNamespace(String namespace) Sets the merge namespace of this mappings spec.mergeNamespace(MappingsNamespace namespace) Sets the merge namespace of this mappings spec.
-
Method Details
-
builder
-
mappingPath
Description copied from interface:FileMappingsSpecBuilderSets the mapping path inside a zip or jar. This will have no effect if the file of this mapping spec is not a zip.Path components within the path should be separated with
/.The default mapping path is
mappings/mappings.tiny, matching regular mapping dependency jars such as Yarn's.- Specified by:
mappingPathin interfaceFileMappingsSpecBuilder- Parameters:
mappingPath- the mapping path- Returns:
- this builder
-
fallbackNamespaces
public FileMappingsSpecBuilderImpl fallbackNamespaces(String sourceNamespace, String targetNamespace) Description copied from interface:FileMappingsSpecBuilderSets the fallback namespaces. They will be used if the mapping format itself doesn't provide namespaces with names (e.g. Enigma mappings).The default fallback namespaces are
intermediaryas the source namespace andnamedas the target namespace as in Yarn.- Specified by:
fallbackNamespacesin interfaceFileMappingsSpecBuilder- Parameters:
sourceNamespace- the fallback source namespacetargetNamespace- the fallback target namespace- Returns:
- this builder
-
enigmaMappings
Description copied from interface:FileMappingsSpecBuilderMarks that the file contains Enigma mappings. Because they are stored in a directory, the format cannot be auto-detected.- Specified by:
enigmaMappingsin interfaceFileMappingsSpecBuilder- Returns:
- this builder
-
containsAnnotations
Description copied from interface:FileMappingsSpecBuilderMarks that the zip file contains annotation data.- Specified by:
containsAnnotationsin interfaceFileMappingsSpecBuilder- Returns:
- this builder
-
containsUnpick
Description copied from interface:FileMappingsSpecBuilderMarks that the zip file contains unpick data.- Specified by:
containsUnpickin interfaceFileMappingsSpecBuilder- Returns:
- this builder
-
mergeNamespace
Description copied from interface:FileMappingsSpecBuilderSets the merge namespace of this mappings spec.The merge namespace is the namespace that is used to match up this layer's names to the rest of the mappings. For example, Yarn mappings should be merged through the intermediary names.
The default merge namespace is
MappingsNamespace.INTERMEDIARY.- Specified by:
mergeNamespacein interfaceFileMappingsSpecBuilder- Parameters:
namespace- the new merge namespace- Returns:
- this builder
-
mergeNamespace
Description copied from interface:FileMappingsSpecBuilderSets the merge namespace of this mappings spec.The merge namespace is the namespace that is used to match up this layer's names to the rest of the mappings. For example, Yarn mappings should be merged through the intermediary names.
The default merge namespace is
intermediary.- Specified by:
mergeNamespacein interfaceFileMappingsSpecBuilder- Parameters:
namespace- the new merge namespace- Returns:
- this builder
-
build
-