mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 08:14:23 +01:00
Implement pony armour for the skin preview
This commit is contained in:
parent
b3d849fdc9
commit
af9fe8579e
1 changed files with 8 additions and 0 deletions
|
@ -7,6 +7,7 @@ import com.minelittlepony.client.model.races.PlayerModels;
|
|||
import com.minelittlepony.client.render.IPonyRender;
|
||||
import com.minelittlepony.client.render.RenderPony;
|
||||
import com.minelittlepony.client.render.layer.LayerGear;
|
||||
import com.minelittlepony.client.render.layer.LayerPonyArmor;
|
||||
import com.minelittlepony.client.render.layer.LayerPonyElytra;
|
||||
import com.minelittlepony.hdskins.dummy.RenderDummyPlayer;
|
||||
import com.minelittlepony.pony.IPony;
|
||||
|
@ -29,6 +30,8 @@ public class RenderDummyPony extends RenderDummyPlayer<DummyPony, ClientPonyMode
|
|||
public RenderDummyPony(EntityRenderDispatcher manager, EntityRendererRegistry.Context context) {
|
||||
super(manager, context);
|
||||
addFeature(new LayerGear<>(this));
|
||||
|
||||
renderPony.setSkipBlend();
|
||||
}
|
||||
|
||||
private ModelWrapper<DummyPony, ClientPonyModel<DummyPony>> playerModel;
|
||||
|
@ -70,6 +73,11 @@ public class RenderDummyPony extends RenderDummyPlayer<DummyPony, ClientPonyMode
|
|||
return playerModel.getBody();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected FeatureRenderer<DummyPony, ClientPonyModel<DummyPony>> getArmourLayer() {
|
||||
return new LayerPonyArmor<>(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected FeatureRenderer<DummyPony, ClientPonyModel<DummyPony>> getElytraLayer() {
|
||||
return new LayerPonyElytra<DummyPony, ClientPonyModel<DummyPony>>(this) {
|
||||
|
|
Loading…
Reference in a new issue