MappingsLoader

The entry point for loading Mappings.

Note that it should be preferred that it is known in advance which mappings format is being dealt with, as the detection mechanism can be inaccurate due to it not fully parsing the input file. It can also slow the entire process down, since it requires the caller to read some probably large resource into a List first, which costs allocations.

Properties

Link copied to clipboard

Contains all supported MappingsFormats.

Functions

Link copied to clipboard

Finds the correct MappingsFormat for the mappings file represented by lines. Throws an IllegalStateException when an invalid mappings sequence is provided (or not supported).

Link copied to clipboard

Attempts to load the mappings represented by lines as Mappings. Throws an IllegalStateException when an invalid mappings sequence is provided (or not supported).