mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-11 09:07:29 +00:00
Start implementing the ASM helpers
This commit is contained in:
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()) {
|
||||
|
||||
Reference in new issue
Block a user