mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-23 04:57:58 +01:00
Fix merge conflicts
This commit is contained in:
parent
9899a01aae
commit
0393daa0ba
3 changed files with 16 additions and 2 deletions
|
@ -97,7 +97,7 @@ public class ModelPonyArmor extends AbstractPonyModel {
|
||||||
flankGuard.showModel = invisible;
|
flankGuard.showModel = invisible;
|
||||||
saddle.showModel = invisible;
|
saddle.showModel = invisible;
|
||||||
bipedHead.showModel = invisible;
|
bipedHead.showModel = invisible;
|
||||||
tail.isHidden = true;
|
tail.setVisible(false);
|
||||||
neck.isHidden = true;
|
neck.isHidden = true;
|
||||||
upperTorso.isHidden = true;
|
upperTorso.isHidden = true;
|
||||||
snout.isHidden = true;
|
snout.isHidden = true;
|
||||||
|
|
|
@ -19,4 +19,11 @@ public interface IModelPart {
|
||||||
* Renders this model component.
|
* Renders this model component.
|
||||||
*/
|
*/
|
||||||
void render(float scale);
|
void render(float scale);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets whether this part should be rendered.
|
||||||
|
*/
|
||||||
|
default void setVisible(boolean visible) {
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,6 +17,8 @@ public class PonyTail extends PlaneRenderer implements IModelPart {
|
||||||
|
|
||||||
private int tailStop = 0;
|
private int tailStop = 0;
|
||||||
|
|
||||||
|
public boolean isHidden = false;
|
||||||
|
|
||||||
public PonyTail(AbstractPonyModel model) {
|
public PonyTail(AbstractPonyModel model) {
|
||||||
super(model);
|
super(model);
|
||||||
theModel = model;
|
theModel = model;
|
||||||
|
@ -72,6 +74,11 @@ public class PonyTail extends PlaneRenderer implements IModelPart {
|
||||||
rotateAngleX = -BODY_ROTATE_ANGLE_X_SNEAK + 0.1F;
|
rotateAngleX = -BODY_ROTATE_ANGLE_X_SNEAK + 0.1F;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setVisible(boolean visible) {
|
||||||
|
isHidden = !visible;
|
||||||
|
}
|
||||||
|
|
||||||
private class TailSegment extends PlaneRenderer {
|
private class TailSegment extends PlaneRenderer {
|
||||||
|
|
||||||
private final int index;
|
private final int index;
|
||||||
|
@ -103,7 +110,7 @@ public class PonyTail extends PlaneRenderer implements IModelPart {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void render(float scale) {
|
public void render(float scale) {
|
||||||
if (index < tailStop) {
|
if (!isHidden && index < tailStop) {
|
||||||
super.render(scale);
|
super.render(scale);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue