mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-26 06:18:00 +01:00
It fixed itself?
This commit is contained in:
parent
ea5ec9fdbe
commit
0f8209c06b
1 changed files with 6 additions and 14 deletions
|
@ -5,15 +5,12 @@ import net.minecraft.entity.EntityLivingBase;
|
||||||
import net.minecraft.entity.monster.EntityWitch;
|
import net.minecraft.entity.monster.EntityWitch;
|
||||||
import net.minecraft.util.math.MathHelper;
|
import net.minecraft.util.math.MathHelper;
|
||||||
|
|
||||||
import com.minelittlepony.model.gear.IGear;
|
|
||||||
import com.minelittlepony.model.gear.WitchHat;
|
|
||||||
import com.minelittlepony.model.player.ModelZebra;
|
import com.minelittlepony.model.player.ModelZebra;
|
||||||
import com.minelittlepony.pony.data.IPony;
|
import com.minelittlepony.pony.data.IPony;
|
||||||
|
import com.minelittlepony.pony.data.PonyWearable;
|
||||||
|
|
||||||
public class ModelWitchPony extends ModelZebra {
|
public class ModelWitchPony extends ModelZebra {
|
||||||
|
|
||||||
private IGear witchHat;
|
|
||||||
|
|
||||||
public ModelWitchPony() {
|
public ModelWitchPony() {
|
||||||
super(false);
|
super(false);
|
||||||
}
|
}
|
||||||
|
@ -80,15 +77,10 @@ public class ModelWitchPony extends ModelZebra {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void renderHead(Entity entity, float move, float swing, float ticks, float headYaw, float headPitch, float scale) {
|
public boolean isWearing(PonyWearable wearable) {
|
||||||
super.renderHead(entity, move, swing, ticks, headYaw, headPitch, scale);
|
if (wearable == PonyWearable.HAT) {
|
||||||
// FIXME: Wearables don't show on witches unless it's holding an item/drinking something
|
return true;
|
||||||
witchHat.renderSeparately(entity, scale);
|
}
|
||||||
}
|
return super.isWearing(wearable);
|
||||||
|
|
||||||
@Override
|
|
||||||
public void init(float yOffset, float stretch) {
|
|
||||||
super.init(yOffset, stretch);
|
|
||||||
witchHat = new WitchHat();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue