mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-26 22:38:00 +01:00
No changes, just whitespace
This commit is contained in:
parent
7d8e971f03
commit
7fbb56ad79
1 changed files with 13 additions and 13 deletions
|
@ -33,17 +33,17 @@ public abstract class AbstractPonyModel extends ModelPlayer {
|
||||||
* Associcated pony data.
|
* Associcated pony data.
|
||||||
*/
|
*/
|
||||||
public IPonyData metadata = new PonyData();
|
public IPonyData metadata = new PonyData();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Vertical pitch whilst flying.
|
* Vertical pitch whilst flying.
|
||||||
*/
|
*/
|
||||||
public float motionPitch;
|
public float motionPitch;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Flag indicating that this model is performing a rainboom (flight).
|
* Flag indicating that this model is performing a rainboom (flight).
|
||||||
*/
|
*/
|
||||||
public boolean rainboom;
|
public boolean rainboom;
|
||||||
|
|
||||||
public AbstractPonyModel(boolean arms) {
|
public AbstractPonyModel(boolean arms) {
|
||||||
super(0, arms);
|
super(0, arms);
|
||||||
}
|
}
|
||||||
|
@ -57,12 +57,12 @@ public abstract class AbstractPonyModel extends ModelPlayer {
|
||||||
initTextures();
|
initTextures();
|
||||||
initPositions(yOffset, stretch);
|
initPositions(yOffset, stretch);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a new pony armour to go with this model. Called on startup by a model wrapper.
|
* Returns a new pony armour to go with this model. Called on startup by a model wrapper.
|
||||||
*/
|
*/
|
||||||
public abstract PonyArmor createArmour();
|
public abstract PonyArmor createArmour();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads texture values.
|
* Loads texture values.
|
||||||
*/
|
*/
|
||||||
|
@ -86,7 +86,7 @@ public abstract class AbstractPonyModel extends ModelPlayer {
|
||||||
protected boolean doCancelRender() {
|
protected boolean doCancelRender() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if this model is on the ground and crouching.
|
* Returns true if this model is on the ground and crouching.
|
||||||
*/
|
*/
|
||||||
|
@ -101,7 +101,7 @@ public abstract class AbstractPonyModel extends ModelPlayer {
|
||||||
return (isFlying && metadata.getRace().hasWings()) ||
|
return (isFlying && metadata.getRace().hasWings()) ||
|
||||||
(entity instanceof EntityLivingBase && ((EntityLivingBase) entity).isElytraFlying());
|
(entity instanceof EntityLivingBase && ((EntityLivingBase) entity).isElytraFlying());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if the current model is a child or a child-like foal.
|
* Returns true if the current model is a child or a child-like foal.
|
||||||
*/
|
*/
|
||||||
|
@ -117,7 +117,7 @@ public abstract class AbstractPonyModel extends ModelPlayer {
|
||||||
renderer.rotationPointY += y;
|
renderer.rotationPointY += y;
|
||||||
renderer.rotationPointZ += z;
|
renderer.rotationPointZ += z;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Rotates the provided arm to the correct orientation for holding an item.
|
* Rotates the provided arm to the correct orientation for holding an item.
|
||||||
*
|
*
|
||||||
|
@ -129,7 +129,7 @@ public abstract class AbstractPonyModel extends ModelPlayer {
|
||||||
protected 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);
|
||||||
|
|
||||||
arm.rotateAngleZ = 0;
|
arm.rotateAngleZ = 0;
|
||||||
arm.rotateAngleY = direction * (0.1F - swing * 0.6F);
|
arm.rotateAngleY = direction * (0.1F - swing * 0.6F);
|
||||||
arm.rotateAngleX = -1.5707964F;
|
arm.rotateAngleX = -1.5707964F;
|
||||||
|
@ -167,7 +167,7 @@ public abstract class AbstractPonyModel extends ModelPlayer {
|
||||||
rotate(motionPitch, 1, 0, 0);
|
rotate(motionPitch, 1, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void transformTall(BodyPart part) {
|
private void transformTall(BodyPart part) {
|
||||||
if (isSleeping) translate(0, -0.65F, 0.25F);
|
if (isSleeping) translate(0, -0.65F, 0.25F);
|
||||||
|
|
||||||
|
@ -193,7 +193,7 @@ public abstract class AbstractPonyModel extends ModelPlayer {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void transformLarge(BodyPart part) {
|
private void transformLarge(BodyPart part) {
|
||||||
if (this.isSleeping) translate(0, -0.7F, 0.2F);
|
if (this.isSleeping) translate(0, -0.7F, 0.2F);
|
||||||
|
|
||||||
|
@ -222,12 +222,12 @@ public abstract class AbstractPonyModel extends ModelPlayer {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void transformFoal(BodyPart part) {
|
private void transformFoal(BodyPart part) {
|
||||||
if (isCrouching()) translate(0, -0.12F, 0);
|
if (isCrouching()) translate(0, -0.12F, 0);
|
||||||
if (isSleeping) translate(0, -1.2F, 0.25F);
|
if (isSleeping) translate(0, -1.2F, 0.25F);
|
||||||
if (isRiding) translate(0, -0.1F, 0);
|
if (isRiding) translate(0, -0.1F, 0);
|
||||||
|
|
||||||
switch (part) {
|
switch (part) {
|
||||||
case NECK:
|
case NECK:
|
||||||
case HEAD:
|
case HEAD:
|
||||||
|
|
Loading…
Reference in a new issue