mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 08:14: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 com.minelittlepony.model.BodyPart;
|
||||
import com.minelittlepony.model.armour.ModelPonyArmor;
|
||||
import com.minelittlepony.model.armour.PonyArmor;
|
||||
import com.minelittlepony.render.model.PonyRenderer;
|
||||
|
||||
public class ModelZebra extends ModelEarthPony {
|
||||
|
@ -13,6 +15,11 @@ public class ModelZebra extends ModelEarthPony {
|
|||
super(useSmallArms);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PonyArmor createArmour() {
|
||||
return new PonyArmor(new Armour(), new Armour());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void transform(BodyPart part) {
|
||||
if (part == BodyPart.HEAD || part == BodyPart.NECK) {
|
||||
|
@ -41,4 +48,18 @@ public class ModelZebra extends ModelEarthPony {
|
|||
.box(0, -8, 6, 2, 6, 2, stretch)
|
||||
.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
|
||||
public boolean hasMagic() {
|
||||
return race != null && getRace().getEffectiveRace(false).hasHorn() && getGlowColor() != 0;
|
||||
return getRace() != null && getRace().getEffectiveRace(false).hasHorn() && getGlowColor() != 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue