Package ftbsc.lll.mapper.impl
Class TSRGMapper
- java.lang.Object
-
- ftbsc.lll.mapper.impl.TSRGMapper
-
- All Implemented Interfaces:
IMappingFormat
@AutoService(IMappingFormat.class) public class TSRGMapper extends java.lang.Object implements IMappingFormat
AIMappingFormat
capable of parsing TSRG (an intermediary format used by Forge) files.
-
-
Constructor Summary
Constructors Constructor Description TSRGMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 aMapper
given the lines, ignoring errors depending on the given flag.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ftbsc.lll.mapper.IMappingFormat
getInvertedMapper, priority
-
-
-
-
Method Detail
-
claim
public boolean claim(java.util.List<java.lang.String> lines)
Description copied from interface:IMappingFormat
Checks whether this mapper can process the given lines.- Specified by:
claim
in interfaceIMappingFormat
- Parameters:
lines
- the lines to read- Returns:
- whether this type of mapper can process these lines
-
getMapper
public Mapper getMapper(java.util.List<java.lang.String> lines, boolean ignoreErrors) throws MalformedMappingsException
Description copied from interface:IMappingFormat
Creates aMapper
given the lines, ignoring errors depending on the given flag.- Specified by:
getMapper
in interfaceIMappingFormat
- Parameters:
lines
- the lines to readignoreErrors
- try to ignore errors and keep going- Returns:
- the
Mapper
- Throws:
MalformedMappingsException
- if an error is encountered and ignoreErrors is false
-
-