Torojima Posted July 2, 2013 Share Posted July 2, 2013 So, I've been producing a mount mob and using for its steering the EntityLiving.isJumping field of the player. Now since mc1.6.1 this field is made private and I can not find a respective getter. There is a setter I can use, but I have the slight impression this is also not the correct way to access and use this field (since there is no respective getter) The handleEntityAction method of the NetServerHandler, setting the action states of and Entity, which could be the player riding a mounted mob, will set a respective field in the mount entity ... in case it is a horse ... (thank you mojang for kicking all other mounted mod producers in the balls) So, what would be the correct way to get the jump information from the player on the client to the mounted mob on the server??? (this is actually the last Compile error Eclipse is showing, I hope I can try to run my mod after that ... no doubt, there will be a lot of issues only visible at runtime tho ) Edit: just noticed, that's not true, I've got another issue regarding the usage of a sound resource ... but that's another story Quote running minecraft on Mac OS X - Sierra --- creating code since 1986 ... --- मेरा दिल भारतवासी है! http://www.arno-saxena.de/pictures/chococraft/banner_signature.png[/img] Link to comment Share on other sites More sharing options...
Torojima Posted July 2, 2013 Author Share Posted July 2, 2013 reflection is out of the question, that's against every object oriented convention one can imagine ... coremod is also out of the question, that would render the hole forge philosophy useless ... So, what is needed is either a forge compliant solution to access the field, or a hole workaround also in forge to get player movement key inputs to the mods ... I would like the later better ... has nobody suggested something like this before me? Quote running minecraft on Mac OS X - Sierra --- creating code since 1986 ... --- मेरा दिल भारतवासी है! http://www.arno-saxena.de/pictures/chococraft/banner_signature.png[/img] Link to comment Share on other sites More sharing options...
Recommended Posts
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.