diff options
Diffstat (limited to 'src/main/java/ftbsc/lll/mapper/tools/data/ClassData.java')
-rw-r--r-- | src/main/java/ftbsc/lll/mapper/tools/data/ClassData.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/ftbsc/lll/mapper/tools/data/ClassData.java b/src/main/java/ftbsc/lll/mapper/tools/data/ClassData.java index cdcec4d..4bd0af0 100644 --- a/src/main/java/ftbsc/lll/mapper/tools/data/ClassData.java +++ b/src/main/java/ftbsc/lll/mapper/tools/data/ClassData.java @@ -69,6 +69,16 @@ public class ClassData { } /** + * Adds a field to the target class. + * @param plain the name of the field + * @param mapped the mapped name of the field + * @param descriptor the plain type descriptor of the field + */ + public void addField(String plain, String mapped, String descriptor) { + this.fields.put(plain, new FieldData(this, plain, mapped, descriptor)); + } + + /** * Generates the reverse mappings for this class. * Should always be called only after the given mapper has finished * processing all classes. |