Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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]

  • Author

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.