zlataovce / acetylene

An unopinionated obfuscation mapping library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

acetylene

Maven releases Maven snapshots

A Java library for managing obfuscation mappings.

Usage

final List<TypedMappingFile> files = new ArrayList<>();
for (...) {
    files.add(SrgUtilsMappingLoader.of(mappingFile1, mappingFile2).loadTyped());
}
final ClassAncestorTree classTree = ClassAncestorTree.of("mapped/class/name", files);
final DescriptableAncestorTree fieldTree = classTree.fieldAncestors("mappedField");
// indexes are deduced from the ordering of the supplied list
// the supplied list should be sorted from the newest version to the oldest
System.out.println(classTree.mapping(1));
System.out.println(fieldTree.mapping(1));

Check out the tests for a more in-depth example.

About

An unopinionated obfuscation mapping library

License:MIT License


Languages

Language:Java 97.0%Language:Kotlin 3.0%