mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-19 15:29:17 +00:00
More injector refactoring, allow capture target args in ModifyVariable
This commit is contained in:
1 parent
dd89e23215
commit
f9e19c32f4
6 files changed
+288
-297
No files matched your search
@@ -717,18 +717,18 @@ public final class Bytecode {
|
||||
* @param args argument types
|
||||
* @return method descriptor without return type
|
||||
*/
|
||||
public static String getDescriptor(Type[] args) {
|
||||
public static String getDescriptor(Type... args) {
|
||||
return "(" + Joiner.on("").join(args) + ")";
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate a method descriptor with the specified types
|
||||
*
|
||||
* @param args argument types
|
||||
* @param returnType return type
|
||||
* @param args argument types
|
||||
*
|
||||
* @return generated method descriptor
|
||||
*/
|
||||
public static String getDescriptor(Type[] args, Type returnType) {
|
||||
public static String getDescriptor(Type returnType, Type... args) {
|
||||
return Bytecode.getDescriptor(args) + returnType.toString();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user