project: Mixins for HD

This commit is contained in:
Owain van Brakel
2021-09-13 03:58:54 +02:00
parent f2a4b60840
commit 638760057e
16 changed files with 395 additions and 77 deletions

View File

@@ -77,7 +77,14 @@ public class DeobAnnotations
@Nullable
public static String getImplements(@NotNull ClassFile cf)
{
return getStringValue(cf, IMPLEMENTS);
String stringValue = getStringValue(cf, IMPLEMENTS);
if (stringValue != null)
{
stringValue = flatten(stringValue);
}
return stringValue;
}
@Nullable
@@ -114,4 +121,9 @@ public class DeobAnnotations
final var a = an.findAnnotation(type);
return a == null ? null : a.getValueString();
}
public static String flatten(String className)
{
return className.substring(className.lastIndexOf('/') + 1);
}
}