Jump to content

Recommended Posts

Posted

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 :D ) Edit: just noticed, that's not true, I've got another issue regarding the usage of a sound resource ... but that's another story :)

running minecraft on Mac OS X - Sierra --- creating code since 1986 ... --- मेरा दिल भारतवासी है!

width=289 height=100http://www.arno-saxena.de/pictures/chococraft/banner_signature.png[/img]

Posted

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?

running minecraft on Mac OS X - Sierra --- creating code since 1986 ... --- मेरा दिल भारतवासी है!

width=289 height=100http://www.arno-saxena.de/pictures/chococraft/banner_signature.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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.