mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-19 15:29:17 +00:00
WIP but mostly working Desc selector functionality
This commit is contained in:
1 parent
2ef2417de6
commit
21881482ae
27 files changed
+998
-42
No files matched your search
@@ -646,6 +646,20 @@ public final class Bytecode {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get an array of Types from an array of classes.
|
||||
*
|
||||
* @param classes Array of classes to convert
|
||||
* @return Array of types
|
||||
*/
|
||||
public static Type[] getTypes(Class<?>... classes) {
|
||||
Type[] types = new Type[classes.length];
|
||||
for (int index = 0; index < classes.length; index++) {
|
||||
types[index] = Type.getType(classes[index]);
|
||||
}
|
||||
return types;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clones all of the labels in the source instruction list and returns the
|
||||
* clones in a map of old label -> new label. This is used to facilitate
|
||||
|
||||
Reference in new issue
Block a user