the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 38 lines 1.4 kB view raw
1#pragma once 2#include "MobRenderer.h" 3 4class HumanoidModel; 5class Giant; 6class ArmorItem; 7 8class HumanoidMobRenderer : public MobRenderer 9{ 10private: 11 static const wstring MATERIAL_NAMES[5]; 12 static std::map<wstring, ResourceLocation> ARMOR_LOCATION_CACHE; 13 14protected: 15 HumanoidModel *humanoidModel; 16 float _scale; 17 HumanoidModel *armorParts1; 18 HumanoidModel *armorParts2; 19 20 void _init(HumanoidModel *humanoidModel, float scale); 21public: 22 static ResourceLocation *getArmorLocation(ArmorItem *armorItem, int layer); 23 static ResourceLocation *getArmorLocation(ArmorItem *armorItem, int layer, bool overlay); 24 25 HumanoidMobRenderer(HumanoidModel *humanoidModel, float shadow); 26 HumanoidMobRenderer(HumanoidModel *humanoidModel, float shadow, float scale); 27 28 virtual void prepareSecondPassArmor(shared_ptr<LivingEntity> mob, int layer, float a); 29 30protected: 31 virtual void createArmorParts(); 32 virtual int prepareArmor(shared_ptr<LivingEntity> _mob, int layer, float a); 33 virtual void render(shared_ptr<Entity> _mob, double x, double y, double z, float rot, float a); 34 virtual ResourceLocation *getTextureLocation(shared_ptr<Entity> mob); 35 virtual void prepareCarriedItem(shared_ptr<Entity> mob, shared_ptr<ItemInstance> item); 36 virtual void additionalRendering(shared_ptr<LivingEntity> mob, float a); 37 virtual void scale(shared_ptr<LivingEntity> mob, float a); 38};