diff options
Diffstat (limited to 'src/main/java/ftbsc/lll/mapper/writer/impl/TSRGWriter.java')
-rw-r--r-- | src/main/java/ftbsc/lll/mapper/writer/impl/TSRGWriter.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main/java/ftbsc/lll/mapper/writer/impl/TSRGWriter.java b/src/main/java/ftbsc/lll/mapper/writer/impl/TSRGWriter.java index fce3156..9828b4e 100644 --- a/src/main/java/ftbsc/lll/mapper/writer/impl/TSRGWriter.java +++ b/src/main/java/ftbsc/lll/mapper/writer/impl/TSRGWriter.java @@ -7,7 +7,8 @@ import ftbsc.lll.mapper.writer.IWriter; import java.io.PrintWriter; /** - * Writes to TSRG, an intermediary format used by Forge. + * An {@link IWriter} that writes in the TSRG format, + * an intermediary format used by Forge. */ @AutoService(IWriter.class) public class TSRGWriter implements IWriter { @@ -17,8 +18,10 @@ public class TSRGWriter implements IWriter { } @Override - public void write(IMapper mapper, PrintWriter writer) { - writer.println("tsrg2 left right"); + public void write(IMapper mapper, PrintWriter writer, String... args) { + if(args.length < 2) + args = new String[] { "left", "right" }; + writer.printf("tsrg2 %s %s\n", args[0], args[1]); mapper.getRawMappings().forEach((name, data) -> { writer.printf("%s %s\n", name, data.nameMapped); data.getFields().forEach((fieldName, fieldData) -> |