Start implementing the ASM helpers

This commit is contained in:
FalsePattern committed 2022-07-25 20:21:43 +02:00
1 parent 5f740d9097
commit f12b7409bc
7 files changed
+204

No files matched your search

@@ -74,6 +74,17 @@ public class MappingManager {
}
}
public static boolean containsClass(NameType nameType, MappingType mappingType, String className) {
switch (nameType) {
case Internal:
return internalLookup.containsKey(mappingType, className);
case Regular:
return regularLookup.containsKey(mappingType, className);
default:
throw new IllegalArgumentException("Invalid enum value " + nameType);
}
}
public static UniversalField getField(FieldInsnNode instruction) throws ClassNotFoundException,
NoSuchFieldException {
if (!CoreLoadingPlugin.isObfuscated()) {