blob: 0114bb03de991c0fee76cc58870d90c560c015c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#pragma once
#include "MobRenderer.h"
class VillagerModel;
class VillagerRenderer : public MobRenderer
{
private:
static ResourceLocation VILLAGER_LOCATION;
static ResourceLocation VILLAGER_FARMER_LOCATION;
static ResourceLocation VILLAGER_LIBRARIAN_LOCATION;
static ResourceLocation VILLAGER_PRIEST_LOCATION;
static ResourceLocation VILLAGER_SMITH_LOCATION;
static ResourceLocation VILLAGER_BUTCHER_LOCATION;
protected:
VillagerModel *villagerModel;
public:
VillagerRenderer();
virtual void render(shared_ptr<Entity> mob, double x, double y, double z, float rot, float a);
virtual ResourceLocation *getTextureLocation(shared_ptr<Entity> _mob);
protected:
virtual int prepareArmor(shared_ptr<LivingEntity> villager, int layer, float a);
virtual void additionalRendering(shared_ptr<LivingEntity> mob, float a);
virtual void scale(shared_ptr<LivingEntity> player, float a);
};
|