the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 31 lines 1.0 kB view raw
1#pragma once 2#include "MobRenderer.h" 3#include "ResourceLocation.h" 4 5class EntityHorse; 6class PathfinderMob; 7 8class HorseRenderer : public MobRenderer 9{ 10private: 11 static std::map<wstring, ResourceLocation *> LAYERED_LOCATION_CACHE; 12 13 static ResourceLocation HORSE_LOCATION; 14 static ResourceLocation HORSE_MULE_LOCATION; 15 static ResourceLocation HORSE_DONKEY_LOCATION; 16 static ResourceLocation HORSE_ZOMBIE_LOCATION; 17 static ResourceLocation HORSE_SKELETON_LOCATION; 18 19public: 20 HorseRenderer(Model *model, float f); 21 22protected: 23 void adjustHeight(shared_ptr<PathfinderMob> mob, float FHeight); 24 virtual void scale(shared_ptr<LivingEntity> entityliving, float f); 25 virtual void renderModel(shared_ptr<LivingEntity> mob, float wp, float ws, float bob, float headRotMinusBodyRot, float headRotx, float scale); 26 virtual void bindTexture(ResourceLocation *location); 27 virtual ResourceLocation *getTextureLocation(shared_ptr<Entity> entity); 28 29private: 30 ResourceLocation *getOrCreateLayeredTextureLocation(shared_ptr<EntityHorse> horse); 31};