mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-03-15 16:10:05 +01:00
Ponified the Wandering Trader
This commit is contained in:
parent
fd6c11b16b
commit
994892046c
3 changed files with 29 additions and 0 deletions
|
@ -21,6 +21,7 @@ public enum MobRenderers implements Setting<Boolean> {
|
|||
pony.switchRenderer(state, VillagerEntity.class, RenderPonyVillager::new);
|
||||
pony.switchRenderer(state, WitchEntity.class, RenderPonyWitch::new);
|
||||
pony.switchRenderer(state, ZombieVillagerEntity.class, RenderPonyZombieVillager::new);
|
||||
pony.switchRenderer(state, WanderingTraderEntity.class, RenderPonyTrader::new);
|
||||
}
|
||||
},
|
||||
ZOMBIES {
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
package com.minelittlepony.client.render.entities;
|
||||
|
||||
import net.minecraft.client.render.entity.EntityRenderDispatcher;
|
||||
import net.minecraft.entity.passive.WanderingTraderEntity;
|
||||
import net.minecraft.util.Identifier;
|
||||
|
||||
import com.minelittlepony.client.model.races.ModelAlicorn;
|
||||
import com.mojang.blaze3d.platform.GlStateManager;
|
||||
|
||||
public class RenderPonyTrader extends RenderPonyMob.Caster<WanderingTraderEntity, ModelAlicorn<WanderingTraderEntity>> {
|
||||
|
||||
public static final Identifier TEXTURE = new Identifier("minelittlepony", "textures/entity/wandering_trader_pony.png");
|
||||
|
||||
public RenderPonyTrader(EntityRenderDispatcher manager) {
|
||||
super(manager, new ModelAlicorn<>(false));
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identifier findTexture(WanderingTraderEntity entity) {
|
||||
return TEXTURE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void scale(WanderingTraderEntity entity, float ticks) {
|
||||
super.scale(entity, ticks);
|
||||
GlStateManager.scalef(0.9375F, 0.9375F, 0.9375F);
|
||||
}
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
Loading…
Add table
Reference in a new issue