Rename PonyRenderer.flipX -> PonyRenderer.flip to better reflect its meaning

This commit is contained in:
Sollace 2018-06-10 19:49:28 +02:00
parent cf1a2bf058
commit 803e79343d
8 changed files with 10 additions and 11 deletions

View file

@ -533,7 +533,7 @@ public abstract class AbstractPonyModel extends ModelPlayer implements IModel {
.box(-4, -4, -4, 8, 8, 8, stretch)
.tex(12, 16)
.box(-4, -6, 1, 2, 2, 2, stretch)
.flipX()
.flip()
.box(2, -6, 1, 2, 2, 2, stretch);
((PonyRenderer)bipedHeadwear).offset(HEAD_CENTRE_X, HEAD_CENTRE_Y, HEAD_CENTRE_Z)

View file

@ -60,10 +60,10 @@ public class ModelPonyArmor extends AbstractPonyModel {
protected void initLegTextures() {
super.initLegTextures();
bipedLeftArm = new PonyRenderer(this, 0, 16).flipX();
bipedLeftArm = new PonyRenderer(this, 0, 16).flip();
bipedRightArm = new PonyRenderer(this, 0, 16);
bipedLeftLeg = new PonyRenderer(this, 0, 16).flipX();
bipedLeftLeg = new PonyRenderer(this, 0, 16).flip();
bipedRightLeg = new PonyRenderer(this, 0, 16);
}

View file

@ -20,7 +20,7 @@ public class PonyElytra extends ModelBase {
public PonyElytra() {
leftWing .box(-10, 0, 0, 10, 20, 2, 1);
rightWing.flipX().box( 0, 0, 0, 10, 20, 2, 1);
rightWing.flip().box( 0, 0, 0, 10, 20, 2, 1);
}
/**

View file

@ -31,14 +31,14 @@ public class SeaponyTail implements IModelPart {
@Override
public void init(float yOffset, float stretch) {
tailBase.rotate(TAIL_ROTX, 0, 0).around(-2, 14, 8)
.box( 0, 0, 0, 4, 6, 4, stretch).flipX();
.box( 0, 0, 0, 4, 6, 4, stretch).flip();
tailTip.rotate(0, 0, 0).around(1, 5, 1)
.box(0, 0, 0, 2, 6, 1, stretch);
tailFins.offset(1, 0, 4).rotate(-TAIL_ROTX, 0, 0)
.addTopPlane(-8, 0, 0, 8, 8, stretch)
.flipX().addTopPlane( 0, 0, 0, 8, 8, stretch);
.flip().addTopPlane( 0, 0, 0, 8, 8, stretch);
}
@Override

View file

@ -69,7 +69,7 @@ public class ModelSeapony extends ModelUnicorn {
protected void initBodyPositions(float yOffset, float stretch) {
super.initBodyPositions(yOffset, stretch);
bodyCenter.around(0, 6, 1)
.box(-3, -1, 0, 6, 7, 9, stretch).flipX();
.box(-3, -1, 0, 6, 7, 9, stretch).flip();
}
@Override

View file

@ -43,7 +43,7 @@ public abstract class AbstractPonyRenderer<T extends AbstractPonyRenderer<T>> ex
/**
* Flips the mirror flag. All faces are mirrored until this is called again.
*/
public T flipX() {
public T flip() {
return mirror(!mirror);
}

View file

@ -16,5 +16,4 @@ public class PonyRenderer extends AbstractPonyRenderer<PonyRenderer> {
protected PonyRenderer copySelf() {
return new PonyRenderer(baseModel, textureOffsetX, textureOffsetY);
}
}

View file

@ -76,7 +76,7 @@ public class ModelPlane extends Box<PlaneRenderer> {
}
@Override
public void render(@Nonnull BufferBuilder renderer, float scale) {
if (!hidden) quad.draw(renderer, scale);
public void render(@Nonnull BufferBuilder buffer, float scale) {
if (!hidden) quad.draw(buffer, scale);
}
}