Posted May 7, 201510 yr Ok, so I've read a ton of posts on this subject and the majority of ppl weren't using gradle to build their jars. I am using gradlew build from cmd line. The weird thing is that I have built jars before based on tutorials and they worked. I'm thinking it may be something to do with access transformers, but I'm not sure. I have confirmed that the minecraft/forge versions match up. Directory structure is correct. Basically it's saying that the method getExperiencePoints() doesn't exist. But it definitely does and at least the method that's being called inside my code is public. I make a call to set the private method in EntityPlayer accessible..so I do believe it should..crazy part is that it works from the eclipse "Run", but after compilation, it derps Crash Report: crash-2015-05-07_15.34.14-client.txt Jar File: MobXPDropMod-0.1.jar Threw it up on GitHub so viewing the code is easier: https://github.com/p455w0rd/MobXPDropMod/tree/master http://p455w0rd.net/images/forumsignature.png[/img]
May 7, 201510 yr e = EntityLivingBase.class.getDeclaredMethod("getExperiencePoints", EntityPlayer.class); That method does not exist in the obfuscated Minecraft code. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
May 7, 201510 yr Author I was wondering that when I searched the csv file and didn't find it..figured i had an outdated file or something..sweet..at least now I know..thanks! http://p455w0rd.net/images/forumsignature.png[/img]
May 7, 201510 yr Does the method not exist because it is a client to server error or it doesn't exist in general? I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.
May 7, 201510 yr Author DERP...i was calling the method via string, so the string wasn't obfuscated..specifically on line 42 of EntityLivingBaseHandler.java: https://github.com/p455w0rd/MobXPDropMod/blob/master/main/java/net/p455w0rd/mobxpdropmod/EntityLivingBaseHandler.java#L42 Just took me a min..sorry for wasting time and thanks for putting up with me http://p455w0rd.net/images/forumsignature.png[/img]
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.