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#include "..\Minecraft.World\Player.h"
4
5class HumanoidModel;
6
7using namespace std;
8
9class PlayerRenderer : public LivingEntityRenderer
10{
11public:
12 // 4J: Made public for use in skull renderer
13 static ResourceLocation DEFAULT_LOCATION;
14
15private:
16 // 4J Added
17 static const unsigned int s_nametagColors[MINECRAFT_NET_MAX_PLAYERS];
18
19 HumanoidModel *humanoidModel;
20 HumanoidModel *armorParts1;
21 HumanoidModel *armorParts2;
22
23public:
24 PlayerRenderer();
25
26 static unsigned int getNametagColour(int index);
27
28private:
29 static const wstring MATERIAL_NAMES[5];
30
31protected:
32 virtual int prepareArmor(shared_ptr<LivingEntity> _player, int layer, float a);
33 virtual void prepareSecondPassArmor(shared_ptr<LivingEntity> mob, int layer, float a);
34
35public:
36 virtual void render(shared_ptr<Entity> _mob, double x, double y, double z, float rot, float a);
37
38protected:
39 virtual void additionalRendering(shared_ptr<LivingEntity> _mob, float a);
40 void renderNameTags(shared_ptr<LivingEntity> player, double x, double y, double z, wstring msg, float scale, double dist);
41
42 virtual void scale(shared_ptr<LivingEntity> _player, float a);
43public:
44 void renderHand();
45
46protected:
47 virtual void setupPosition(shared_ptr<LivingEntity> _mob, double x, double y, double z);
48 virtual void setupRotations(shared_ptr<LivingEntity> _mob, float bob, float bodyRot, float a);
49
50private:
51 virtual void renderShadow(shared_ptr<Entity> e, double x, double y, double z, float pow, float a); // 4J Added override
52
53public:
54 virtual ResourceLocation *getTextureLocation(shared_ptr<Entity> entity);
55
56 using LivingEntityRenderer::bindTexture;
57 virtual void bindTexture(shared_ptr<Entity> entity); // 4J Added override
58};