I need help with ambiguously named variables

Started by clarence112 on

Topic category: Advanced modding

Last seen on 03:49, 1. May 2023
Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need help with ambiguously named variables

I need help with ambiguously named variables, particularly those in the animation section of entities.

public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity e)

What do the variables f through f5 represent?

As far as I can tell:

  • f is the entity's age in ticks
  • f1 is the entity's current speed
  • f3 is the entity's head Y angle
  • f4 is the entity's head X angle
It's surely the entity's…
Sun, 09/08/2019 - 15:48

It's surely the entity's head Z angle. You have write Y angl, X Angle, but not the Z Angle.

Last seen on 03:49, 1. May 2023
Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is that f2 or f5?
Sun, 09/08/2019 - 15:52

Is that f2 or f5?

Last seen on 03:49, 1. May 2023
Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok here's what I've figured…
Sun, 09/08/2019 - 17:57

Ok here's what I've figured out:

  • f is the distance the entity has traveled
  • f1 is the current speed
  • f2 is the age in ticks
  • f3 is head y
  • f4 is head x
  • f5 is ?
Last seen on 14:43, 2. Aug 2022
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Then f5 must be head z?     …
Mon, 09/09/2019 - 17:38

Then f5 must be head z?