the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 45 lines 1.1 kB view raw
1#pragma once 2#include "HumanoidMobRenderer.h" 3 4class VillagerZombieModel; 5class Zombie; 6 7class ZombieRenderer : public HumanoidMobRenderer 8{ 9private: 10 static ResourceLocation ZOMBIE_PIGMAN_LOCATION; 11 static ResourceLocation ZOMBIE_LOCATION; 12 static ResourceLocation ZOMBIE_VILLAGER_LOCATION; 13 14 HumanoidModel *defaultModel; 15 VillagerZombieModel *villagerModel; 16 17protected: 18 HumanoidModel *defaultArmorParts1; 19 HumanoidModel *defaultArmorParts2; 20 HumanoidModel *villagerArmorParts1; 21 HumanoidModel *villagerArmorParts2; 22 23private: 24 int modelVersion; 25 26public: 27 ZombieRenderer(); 28 29protected: 30 virtual void createArmorParts(); 31 virtual int prepareArmor(shared_ptr<LivingEntity> _mob, int layer, float a); 32 33public: 34 virtual void render(shared_ptr<Entity> _mob, double x, double y, double z, float rot, float a); 35 virtual ResourceLocation *getTextureLocation(shared_ptr<Entity> entity); 36 37protected: 38 virtual void additionalRendering(shared_ptr<LivingEntity> _mob, float a); 39 40private: 41 virtual void swapArmor(shared_ptr<Zombie> mob); 42 43protected: 44 virtual void setupRotations(shared_ptr<LivingEntity> _mob, float bob, float bodyRot, float a); 45};