mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 16:24:23 +01:00
Exorcised Zecora's demons
This commit is contained in:
parent
22dd30a9d3
commit
53f5b7a9d8
2 changed files with 22 additions and 1 deletions
|
@ -3,6 +3,8 @@ package com.minelittlepony.model.player;
|
||||||
import net.minecraft.client.renderer.GlStateManager;
|
import net.minecraft.client.renderer.GlStateManager;
|
||||||
|
|
||||||
import com.minelittlepony.model.BodyPart;
|
import com.minelittlepony.model.BodyPart;
|
||||||
|
import com.minelittlepony.model.armour.ModelPonyArmor;
|
||||||
|
import com.minelittlepony.model.armour.PonyArmor;
|
||||||
import com.minelittlepony.render.model.PonyRenderer;
|
import com.minelittlepony.render.model.PonyRenderer;
|
||||||
|
|
||||||
public class ModelZebra extends ModelEarthPony {
|
public class ModelZebra extends ModelEarthPony {
|
||||||
|
@ -13,6 +15,11 @@ public class ModelZebra extends ModelEarthPony {
|
||||||
super(useSmallArms);
|
super(useSmallArms);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PonyArmor createArmour() {
|
||||||
|
return new PonyArmor(new Armour(), new Armour());
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void transform(BodyPart part) {
|
public void transform(BodyPart part) {
|
||||||
if (part == BodyPart.HEAD || part == BodyPart.NECK) {
|
if (part == BodyPart.HEAD || part == BodyPart.NECK) {
|
||||||
|
@ -41,4 +48,18 @@ public class ModelZebra extends ModelEarthPony {
|
||||||
.box(0, -8, 6, 2, 6, 2, stretch)
|
.box(0, -8, 6, 2, 6, 2, stretch)
|
||||||
.rotateAngleX = -1F;
|
.rotateAngleX = -1F;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class Armour extends ModelPonyArmor {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void transform(BodyPart part) {
|
||||||
|
if (part == BodyPart.HEAD || part == BodyPart.NECK) {
|
||||||
|
GlStateManager.translate(0, -0.1F, 0);
|
||||||
|
}
|
||||||
|
if (part == BodyPart.NECK) {
|
||||||
|
GlStateManager.scale(1, 1.3F, 1);
|
||||||
|
}
|
||||||
|
super.transform(part);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,7 @@ public class PonyData implements IPonyData {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean hasMagic() {
|
public boolean hasMagic() {
|
||||||
return race != null && getRace().getEffectiveRace(false).hasHorn() && getGlowColor() != 0;
|
return getRace() != null && getRace().getEffectiveRace(false).hasHorn() && getGlowColor() != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue