mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 20:47:59 +01:00
Added a third gender. My aren't we progressive today...
This commit is contained in:
parent
d35f839c3f
commit
c3be5cb976
2 changed files with 12 additions and 3 deletions
|
@ -61,7 +61,7 @@ public class PonySnout {
|
||||||
public void setGender(PonyGender gender) {
|
public void setGender(PonyGender gender) {
|
||||||
boolean show = !head.hasHeadGear() && !isHidden && MineLittlePony.getConfig().snuzzles;
|
boolean show = !head.hasHeadGear() && !isHidden && MineLittlePony.getConfig().snuzzles;
|
||||||
|
|
||||||
mare.isHidden = !show || gender == PonyGender.STALLION;
|
mare.isHidden = !(show && gender.isMare());
|
||||||
stallion.isHidden = !show || gender == PonyGender.MARE;
|
stallion.isHidden = !(show && gender.isStallion());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,8 @@ package com.minelittlepony.pony.data;
|
||||||
|
|
||||||
public enum PonyGender implements ITriggerPixelMapped<PonyGender> {
|
public enum PonyGender implements ITriggerPixelMapped<PonyGender> {
|
||||||
MARE(0),
|
MARE(0),
|
||||||
STALLION(0xffffff);
|
STALLION(0xffffff),
|
||||||
|
ABOMONATION(0x888888);
|
||||||
|
|
||||||
private int triggerValue;
|
private int triggerValue;
|
||||||
|
|
||||||
|
@ -14,4 +15,12 @@ public enum PonyGender implements ITriggerPixelMapped<PonyGender> {
|
||||||
public int getTriggerPixel() {
|
public int getTriggerPixel() {
|
||||||
return triggerValue;
|
return triggerValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isMare() {
|
||||||
|
return this == MARE;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isStallion() {
|
||||||
|
return this == STALLION;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue