mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-27 06:47:59 +01:00
Rename PonyRenderer.flipX -> PonyRenderer.flip to better reflect its meaning
This commit is contained in:
parent
cf1a2bf058
commit
803e79343d
8 changed files with 10 additions and 11 deletions
|
@ -533,7 +533,7 @@ public abstract class AbstractPonyModel extends ModelPlayer implements IModel {
|
||||||
.box(-4, -4, -4, 8, 8, 8, stretch)
|
.box(-4, -4, -4, 8, 8, 8, stretch)
|
||||||
.tex(12, 16)
|
.tex(12, 16)
|
||||||
.box(-4, -6, 1, 2, 2, 2, stretch)
|
.box(-4, -6, 1, 2, 2, 2, stretch)
|
||||||
.flipX()
|
.flip()
|
||||||
.box(2, -6, 1, 2, 2, 2, stretch);
|
.box(2, -6, 1, 2, 2, 2, stretch);
|
||||||
|
|
||||||
((PonyRenderer)bipedHeadwear).offset(HEAD_CENTRE_X, HEAD_CENTRE_Y, HEAD_CENTRE_Z)
|
((PonyRenderer)bipedHeadwear).offset(HEAD_CENTRE_X, HEAD_CENTRE_Y, HEAD_CENTRE_Z)
|
||||||
|
|
|
@ -60,10 +60,10 @@ public class ModelPonyArmor extends AbstractPonyModel {
|
||||||
protected void initLegTextures() {
|
protected void initLegTextures() {
|
||||||
super.initLegTextures();
|
super.initLegTextures();
|
||||||
|
|
||||||
bipedLeftArm = new PonyRenderer(this, 0, 16).flipX();
|
bipedLeftArm = new PonyRenderer(this, 0, 16).flip();
|
||||||
bipedRightArm = new PonyRenderer(this, 0, 16);
|
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);
|
bipedRightLeg = new PonyRenderer(this, 0, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ public class PonyElytra extends ModelBase {
|
||||||
|
|
||||||
public PonyElytra() {
|
public PonyElytra() {
|
||||||
leftWing .box(-10, 0, 0, 10, 20, 2, 1);
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -31,14 +31,14 @@ public class SeaponyTail implements IModelPart {
|
||||||
@Override
|
@Override
|
||||||
public void init(float yOffset, float stretch) {
|
public void init(float yOffset, float stretch) {
|
||||||
tailBase.rotate(TAIL_ROTX, 0, 0).around(-2, 14, 8)
|
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)
|
tailTip.rotate(0, 0, 0).around(1, 5, 1)
|
||||||
.box(0, 0, 0, 2, 6, 1, stretch);
|
.box(0, 0, 0, 2, 6, 1, stretch);
|
||||||
|
|
||||||
tailFins.offset(1, 0, 4).rotate(-TAIL_ROTX, 0, 0)
|
tailFins.offset(1, 0, 4).rotate(-TAIL_ROTX, 0, 0)
|
||||||
.addTopPlane(-8, 0, 0, 8, 8, stretch)
|
.addTopPlane(-8, 0, 0, 8, 8, stretch)
|
||||||
.flipX().addTopPlane( 0, 0, 0, 8, 8, stretch);
|
.flip().addTopPlane( 0, 0, 0, 8, 8, stretch);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -69,7 +69,7 @@ public class ModelSeapony extends ModelUnicorn {
|
||||||
protected void initBodyPositions(float yOffset, float stretch) {
|
protected void initBodyPositions(float yOffset, float stretch) {
|
||||||
super.initBodyPositions(yOffset, stretch);
|
super.initBodyPositions(yOffset, stretch);
|
||||||
bodyCenter.around(0, 6, 1)
|
bodyCenter.around(0, 6, 1)
|
||||||
.box(-3, -1, 0, 6, 7, 9, stretch).flipX();
|
.box(-3, -1, 0, 6, 7, 9, stretch).flip();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -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.
|
* Flips the mirror flag. All faces are mirrored until this is called again.
|
||||||
*/
|
*/
|
||||||
public T flipX() {
|
public T flip() {
|
||||||
return mirror(!mirror);
|
return mirror(!mirror);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,5 +16,4 @@ public class PonyRenderer extends AbstractPonyRenderer<PonyRenderer> {
|
||||||
protected PonyRenderer copySelf() {
|
protected PonyRenderer copySelf() {
|
||||||
return new PonyRenderer(baseModel, textureOffsetX, textureOffsetY);
|
return new PonyRenderer(baseModel, textureOffsetX, textureOffsetY);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,7 +76,7 @@ public class ModelPlane extends Box<PlaneRenderer> {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void render(@Nonnull BufferBuilder renderer, float scale) {
|
public void render(@Nonnull BufferBuilder buffer, float scale) {
|
||||||
if (!hidden) quad.draw(renderer, scale);
|
if (!hidden) quad.draw(buffer, scale);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue