the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 29 lines 848 B view raw
1#pragma once 2 3#include "TileEntityRenderer.h" 4 5class SkeletonHeadModel; 6 7class SkullTileRenderer : public TileEntityRenderer 8{ 9public: 10 static SkullTileRenderer *instance; 11 12private: 13 static ResourceLocation SKELETON_LOCATION; 14 static ResourceLocation WITHER_SKELETON_LOCATION; 15 static ResourceLocation ZOMBIE_LOCATION; 16 static ResourceLocation CREEPER_LOCATION; 17 18 // note: this head fits most mobs, just change texture 19 SkeletonHeadModel *skeletonModel; 20 SkeletonHeadModel *zombieModel; 21 22public: 23 SkullTileRenderer(); 24 ~SkullTileRenderer(); 25 26 void render(shared_ptr<TileEntity> skull, double x, double y, double z, float a, bool setColor, float alpha, bool useCompiled = true); 27 void init(TileEntityRenderDispatcher *tileEntityRenderDispatcher); 28 void renderSkull(float x, float y, float z, int face, float rot, int type, const wstring &extra); 29};