Add class reference

This commit is contained in:
ZXMushroom63 2024-05-22 17:22:08 +08:00
parent b71ee96c8f
commit c2e49dc4b5
2 changed files with 7 additions and 0 deletions

View File

@ -19,6 +19,7 @@ for (int i = 0; i < reflect_%classname%_methods_arr.length; i++) {
reflect_%classname%.set("constructors", reflect_%classname%_constructors_arr); reflect_%classname%.set("constructors", reflect_%classname%_constructors_arr);
reflect_%classname%.set("methods", reflect_%classname%_methods_arr); reflect_%classname%.set("methods", reflect_%classname%_methods_arr);
reflect_%classname%.set("className", "%classname%"); reflect_%classname%.set("className", "%classname%");
reflect_%classname%.set("class", %classname%.class);
reflectProfiles.add(reflect_%classname%); reflectProfiles.add(reflect_%classname%);
`; `;

View File

@ -0,0 +1,6 @@
function reflect_hook() {
var ModAPI = window.ModAPI || {};
ModAPI.javaClass = function javaClass(getClass) {
}
}