Added a third gender. My aren't we progressive today...

This commit is contained in:
Sollace 2018-10-27 17:12:18 +02:00
parent d35f839c3f
commit c3be5cb976
2 changed files with 12 additions and 3 deletions

View file

@ -61,7 +61,7 @@ public class PonySnout {
public void setGender(PonyGender gender) {
boolean show = !head.hasHeadGear() && !isHidden && MineLittlePony.getConfig().snuzzles;
mare.isHidden = !show || gender == PonyGender.STALLION;
stallion.isHidden = !show || gender == PonyGender.MARE;
mare.isHidden = !(show && gender.isMare());
stallion.isHidden = !(show && gender.isStallion());
}
}

View file

@ -2,7 +2,8 @@ package com.minelittlepony.pony.data;
public enum PonyGender implements ITriggerPixelMapped<PonyGender> {
MARE(0),
STALLION(0xffffff);
STALLION(0xffffff),
ABOMONATION(0x888888);
private int triggerValue;
@ -14,4 +15,12 @@ public enum PonyGender implements ITriggerPixelMapped<PonyGender> {
public int getTriggerPixel() {
return triggerValue;
}
public boolean isMare() {
return this == MARE;
}
public boolean isStallion() {
return this == STALLION;
}
}