@AutoService(value=IMappingFormat.class) public class TSRGMapper extends java.lang.Object implements IMappingFormat
IMappingFormat
capable of parsing TSRG (an intermediary
format used by Forge) files.Constructor and Description |
---|
TSRGMapper() |
Modifier and Type | Method and Description |
---|---|
boolean |
claim(java.util.List<java.lang.String> lines)
Checks whether this mapper can process the given lines.
|
Mapper |
getMapper(java.util.List<java.lang.String> lines,
boolean ignoreErrors)
Creates a
Mapper given the lines, ignoring errors depending on the given flag. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInvertedMapper, priority
public boolean claim(java.util.List<java.lang.String> lines)
IMappingFormat
claim
in interface IMappingFormat
lines
- the lines to readpublic Mapper getMapper(java.util.List<java.lang.String> lines, boolean ignoreErrors) throws MalformedMappingsException
IMappingFormat
Mapper
given the lines, ignoring errors depending on the given flag.getMapper
in interface IMappingFormat
lines
- the lines to readignoreErrors
- try to ignore errors and keep goingMapper
MalformedMappingsException
- if an error is encountered and ignoreErrors is false