Fix issues with NoReflect, add new classes.
This commit is contained in:
parent
03b3103c65
commit
ed2a6a998f
|
@ -97,8 +97,16 @@
|
|||
<br>
|
||||
<textarea id="config" spellcheck="false">
|
||||
{
|
||||
"targetFiles": ["net.minecraft.item.ItemStack", "net.minecraft.client.Minecraft"],
|
||||
"imports": ["java.lang.String"],
|
||||
"targetFiles": ["net.minecraft.item.ItemStack",
|
||||
"net.minecraft.client.Minecraft",
|
||||
"net.lax1dude.eaglercraft.v1_8.opengl.EaglercraftGPU",
|
||||
"net.lax1dude.eaglercraft.v1_8.opengl.GlStateManager",
|
||||
"net.minecraft.util.AxisAlignedBB",
|
||||
"net.minecraft.util.Vec3",
|
||||
"net.minecraft.client.multiplayer.WorldClient",
|
||||
"net.minecraft.world.World",
|
||||
"net.minecraft.world.WorldServer"],
|
||||
"imports": ["java.lang.String", "java.util.Calendar"],
|
||||
"managerFile": "net.eaglerforge.reflect.PLReflect",
|
||||
"includeReadFiles": false,
|
||||
"attemptAutoImport": true
|
||||
|
|
|
@ -82,7 +82,7 @@ function reconJ(java, className) {
|
|||
let methodRegex = /(public|static|private|protected|\s)* +([\w\<\>\[\]]+)\s+(\w+) *\(([^)]*)\)/g;
|
||||
|
||||
let methods = [...javaText.matchAll(methodRegex).filter((line)=>{
|
||||
return !line[0].includes("> ") && !line[0].startsWith(" else ") && !line[0].startsWith(" new ") && !line[0].includes(" private ") && !line[0].includes("\tprotected ") && !line[0].includes("\tprivate ") && !line[0].includes(" protected ") && !line[0].includes("\n\t\t");
|
||||
return !line[0].includes("> ") && !line[0].startsWith(" else ") && !line[0].startsWith(" new ") && !line[0].includes(" private ") && !line[0].includes("\tprotected ") && !line[0].includes("\tprivate ") && !line[0].includes(" protected ") && !line[0].includes("\n\t\t") && line[0].includes("public ");
|
||||
//Doesn't support Type<Subtype> yet
|
||||
})];
|
||||
|
||||
|
@ -96,7 +96,9 @@ function reconJ(java, className) {
|
|||
if (argumentString.trim().length > 0) {
|
||||
let argumentList = argumentString.split(",");
|
||||
argumentList.forEach((argument) => {
|
||||
let [type, name] = argument.trim().split(" ");
|
||||
let [type, name] = argument.trim().split(" ").filter(potential => {
|
||||
return potential !== "final";
|
||||
});
|
||||
arguments[name] = type;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue