mirror of
https://github.com/eaglerforge/EaglerForge-old.git
synced 2025-05-31 11:50:58 -05:00
Add simple noreflect wrapper fn generator
This commit is contained in:
parent
00d08e11f4
commit
51112a09ed
@ -74,10 +74,14 @@ import org.teavm.jso.JSFunctor;
|
||||
//Made by ZXMushroom63
|
||||
|
||||
public class PLReflect extends ModData {
|
||||
@JSBody(params = { "reflectInst" }, script = "reflectInst.getMethodMapFromClass = function(classObj) {var outMethodMap = {}; classObj.methods.forEach(method=>{outMethodMap[method.methodName]=method;}); return outMethodMap;}")
|
||||
public static native BaseData setMethodMapFn(BaseData reflectInst);
|
||||
|
||||
%classdefs%
|
||||
|
||||
public static PLReflect makeModData() {
|
||||
PLReflect plReflectGlobal = new PLReflect();
|
||||
setMethodMapFn(plReflectGlobal);
|
||||
ArrayList<BaseData> reflectProfiles = new ArrayList<BaseData>();
|
||||
|
||||
%classdefcalls%
|
||||
|
Loading…
x
Reference in New Issue
Block a user