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

Here are some methods i found that are client-only and I see no reason why they aren't universal

 

EntityLivingBase.getPosition(float par1)

EntityLivingBase.rayTrace(double par1, float par3)

Vec3.rotateAroundZ(float par1)

 

there are probably more, but I have found no more at the moment

  • Author

i understand how @SideOnly works, my question is, i see no reason for those methods to be client only, there has to be a way to force them to be universal

Take Vec3.rotateAroundZ for example, why is it ClientOnly when Vec3.rotateAroundX and rotateAroundY are completely universal.

Also, EntityLivingBase.rayTrace is ClientOnly, only because EntityLivingBase.getPosition is ClientOnly, and why would getPosition be client only if getLook (which is as commonly used) is universal?

 

If something never gets called from the Server it doesn't necessarily mean it exists for client-purposes only. What if it's Mojang's placeholder method and they are planning to use it right in the next version?

 

In 1.5.2, those methods weren't client-only, they served many purposes in the server, but now in 1.6.2 they are, i see no point in that

  • Author

And that's exactly the problem, what if others want to use it? making a copy of the method wouldn't be such a problem, but using the vanilla's methods will always feel better and secured.

Why aren't there any way to force that stripping from happening? Or at least restrict the obfuscator in some files. Forge must be able to do this, or at least FML, since "Side" and "SideOnly" are in FML

  • Author

Then i must ask Jeb to call getPosition when his zombie is updating, also rotateAroundZ when it's looking around

 

Thank you for your clearance anyway.

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.