aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/mapper/writer/impl
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/ftbsc/lll/mapper/writer/impl')
-rw-r--r--src/main/java/ftbsc/lll/mapper/writer/impl/SRGWriter.java6
-rw-r--r--src/main/java/ftbsc/lll/mapper/writer/impl/TSRGWriter.java4
-rw-r--r--src/main/java/ftbsc/lll/mapper/writer/impl/TinyV2Writer.java4
3 files changed, 7 insertions, 7 deletions
diff --git a/src/main/java/ftbsc/lll/mapper/writer/impl/SRGWriter.java b/src/main/java/ftbsc/lll/mapper/writer/impl/SRGWriter.java
index 5abb2db..e0211e0 100644
--- a/src/main/java/ftbsc/lll/mapper/writer/impl/SRGWriter.java
+++ b/src/main/java/ftbsc/lll/mapper/writer/impl/SRGWriter.java
@@ -1,7 +1,7 @@
package ftbsc.lll.mapper.writer.impl;
import com.google.auto.service.AutoService;
-import ftbsc.lll.mapper.IMapper;
+import ftbsc.lll.mapper.tools.Mapper;
import ftbsc.lll.mapper.tools.MappingUtils;
import ftbsc.lll.mapper.tools.data.FieldData;
import ftbsc.lll.mapper.tools.data.MethodData;
@@ -22,13 +22,13 @@ public class SRGWriter implements IWriter {
}
@Override
- public void write(IMapper mapper, PrintWriter writer, String... ignored) {
+ public void write(Mapper mapper, PrintWriter writer, String... ignored) {
List<FieldData> fieldData = new ArrayList<>();
List<MethodData> methodData = new ArrayList<>();
//print classes and save rest for later
mapper.getRawMappings().forEach((name, data) -> {
- writer.printf("CL: %s, %s\n", name, data.nameMapped);
+ writer.printf("CL: %s %s\n", name, data.nameMapped);
fieldData.addAll(data.getFields().values());
methodData.addAll(data.getMethods().values());
});
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 9828b4e..b37e5f0 100644
--- a/src/main/java/ftbsc/lll/mapper/writer/impl/TSRGWriter.java
+++ b/src/main/java/ftbsc/lll/mapper/writer/impl/TSRGWriter.java
@@ -1,7 +1,7 @@
package ftbsc.lll.mapper.writer.impl;
import com.google.auto.service.AutoService;
-import ftbsc.lll.mapper.IMapper;
+import ftbsc.lll.mapper.tools.Mapper;
import ftbsc.lll.mapper.writer.IWriter;
import java.io.PrintWriter;
@@ -18,7 +18,7 @@ public class TSRGWriter implements IWriter {
}
@Override
- public void write(IMapper mapper, PrintWriter writer, String... args) {
+ public void write(Mapper mapper, PrintWriter writer, String... args) {
if(args.length < 2)
args = new String[] { "left", "right" };
writer.printf("tsrg2 %s %s\n", args[0], args[1]);
diff --git a/src/main/java/ftbsc/lll/mapper/writer/impl/TinyV2Writer.java b/src/main/java/ftbsc/lll/mapper/writer/impl/TinyV2Writer.java
index 981ea2f..4649e3f 100644
--- a/src/main/java/ftbsc/lll/mapper/writer/impl/TinyV2Writer.java
+++ b/src/main/java/ftbsc/lll/mapper/writer/impl/TinyV2Writer.java
@@ -1,7 +1,7 @@
package ftbsc.lll.mapper.writer.impl;
import com.google.auto.service.AutoService;
-import ftbsc.lll.mapper.IMapper;
+import ftbsc.lll.mapper.tools.Mapper;
import ftbsc.lll.mapper.writer.IWriter;
import java.io.PrintWriter;
@@ -18,7 +18,7 @@ public class TinyV2Writer implements IWriter {
}
@Override
- public void write(IMapper mapper, PrintWriter writer, String... args) {
+ public void write(Mapper mapper, PrintWriter writer, String... args) {
writer.printf("tiny\t2\t0\t%s\t%s", args[0], args[1]);
mapper.getRawMappings().forEach((name, data) -> {
writer.printf("c\t%s\t%s\n", name, data.nameMapped);