mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 16:24:23 +01:00
Apparantly google hates concise readable code. So there, can't complain about static members if they're not static. :P
I may just revert this later...
This commit is contained in:
parent
16eed1e568
commit
441fc61508
1 changed files with 2 additions and 2 deletions
|
@ -112,7 +112,7 @@ public abstract class AbstractPonyModel extends ModelPlayer {
|
||||||
/**
|
/**
|
||||||
* Adjusts the rotation center of the given renderer by the given amounts in each direction.
|
* Adjusts the rotation center of the given renderer by the given amounts in each direction.
|
||||||
*/
|
*/
|
||||||
public static void shiftRotationPoint(ModelRenderer renderer, float x, float y, float z) {
|
public void shiftRotationPoint(ModelRenderer renderer, float x, float y, float z) {
|
||||||
renderer.rotationPointX += x;
|
renderer.rotationPointX += x;
|
||||||
renderer.rotationPointY += y;
|
renderer.rotationPointY += y;
|
||||||
renderer.rotationPointZ += z;
|
renderer.rotationPointZ += z;
|
||||||
|
@ -126,7 +126,7 @@ public abstract class AbstractPonyModel extends ModelPlayer {
|
||||||
* @param swingProgress How far we are through the current swing
|
* @param swingProgress How far we are through the current swing
|
||||||
* @param tick Render partial ticks
|
* @param tick Render partial ticks
|
||||||
*/
|
*/
|
||||||
protected static void rotateArmHolding(ModelRenderer arm, float direction, float swingProgress, float tick) {
|
protected void rotateArmHolding(ModelRenderer arm, float direction, float swingProgress, float tick) {
|
||||||
float swing = MathHelper.sin(swingProgress * (float)Math.PI);
|
float swing = MathHelper.sin(swingProgress * (float)Math.PI);
|
||||||
float roll = MathHelper.sin((1 - (1 - swingProgress) * (1 - swingProgress)) * (float)Math.PI);
|
float roll = MathHelper.sin((1 - (1 - swingProgress) * (1 - swingProgress)) * (float)Math.PI);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue