![]() ![]() : : .PlayerList.v()Īt .ReflectionExample.onEnable(ReflectionExample.java:20) ~Īt .tEnabled(JavaPlugin.java:177) ~Īt .JavaPluginLoader.enablePlugin(JavaPluginLoader.java:318) Īt .enablePlugin(SimplePluginManager.java:399) Īt 1_12_R1.CraftServer.enablePlugin(CraftServer.java:477) Īt 1_12_R1.CraftServer.enablePlugins(CraftServer.java:418) Īt .func_71247_a(MinecraftServer.java:383) Īt .DedicatedServer.func_71197_b(DedicatedServer.java:315) Īt .run(MinecraftServer.java:590) Īt (Unknown Source) Ĭaused by: : .PlayerList.v()Īt (Unknown Source) ~Īt .proxy.Prox圜lass.getMethod(Prox圜lass.java:43) ~Īt .ReflectionExample.onEnable(ReflectionExample. In Java, ('bar') declares a checked exception of type NoSuchMethodException (among others). If you want to execute it you need to compile and install it as a plugin to Mohist server, I'm using version 1.12.2, build 320.įull exception: : Error occurred while enabling ReflectionExample v1.0-SNAPSHOT (Is it up to date?) Method getPlayersMethod = playerListClass.getDeclaredMethod("func_181057_v") Įxact method name is public .PlayerList.func_181057_v() Method getPlayerListMethod = minecraftServerClass.getDeclaredMethod("getPlayerList") Method getMinecraftServerInstanceMethod = fmlCommonHandlerClass.getDeclaredMethod("getMinecraftServerInstance") When I change anything about the name (for example func_181057_v) then the exact typed in method is looked for rather than "v".Ĭlass fmlCommonHandlerClass = Class.forName(".FMLCommonHandler") Ĭlass minecraftServerClass = Class.forName("") Ĭlass playerListClass = Class.forName(".PlayerList") I don't think it's supposed to do that - why is the method name different in thrown exception compared to what I've actually typed in and how can I retrieve that method? ![]() Using m圜lass.getMethod("func_181057_v") throws exception in the console - "NoSuchMethodException: m圜lass.v()". ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |