the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2#include "MobRenderer.h"
3
4class VillagerModel;
5
6class VillagerRenderer : public MobRenderer
7{
8private:
9 static ResourceLocation VILLAGER_LOCATION;
10 static ResourceLocation VILLAGER_FARMER_LOCATION;
11 static ResourceLocation VILLAGER_LIBRARIAN_LOCATION;
12 static ResourceLocation VILLAGER_PRIEST_LOCATION;
13 static ResourceLocation VILLAGER_SMITH_LOCATION;
14 static ResourceLocation VILLAGER_BUTCHER_LOCATION;
15
16protected:
17 VillagerModel *villagerModel;
18
19public:
20 VillagerRenderer();
21 virtual void render(shared_ptr<Entity> mob, double x, double y, double z, float rot, float a);
22 virtual ResourceLocation *getTextureLocation(shared_ptr<Entity> _mob);
23
24protected:
25 virtual int prepareArmor(shared_ptr<LivingEntity> villager, int layer, float a);
26 virtual void additionalRendering(shared_ptr<LivingEntity> mob, float a);
27 virtual void scale(shared_ptr<LivingEntity> player, float a);
28};