the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 46 lines 1.3 kB view raw
1#pragma once 2 3class Minecraft; 4class ItemInstance; 5class Minimap; 6class LivingEntity; 7class TileRenderer; 8class Tesselator; 9 10class ItemInHandRenderer 11{ 12public: 13 // 4J - made these public 14 static ResourceLocation ENCHANT_GLINT_LOCATION; 15 static ResourceLocation MAP_BACKGROUND_LOCATION; 16 static ResourceLocation UNDERWATER_LOCATION; 17 18private: 19 Minecraft *minecraft; 20 shared_ptr<ItemInstance> selectedItem; 21 float height; 22 float oHeight; 23 TileRenderer *tileRenderer; 24 static int listItem, listGlint, listTerrain; 25 26public: 27 // 4J Stu - Made public so we can use it from ItemFramRenderer 28 Minimap *minimap; 29 30public: 31 ItemInHandRenderer(Minecraft *mc, bool optimisedMinimap = true); // 4J Added optimisedMinimap param 32 void renderItem(shared_ptr<LivingEntity> mob, shared_ptr<ItemInstance> item, int layer, bool setColor = true); // 4J added setColor parameter 33 static void renderItem3D(Tesselator *t, float u0, float v0, float u1, float v1, int width, int height, float depth, bool isGlint, bool isTerrain); // 4J added isGlint and isTerrain parameter 34public: 35 void render(float a); 36 void renderScreenEffect(float a); 37private: 38 void renderTex(float a, Icon *slot); 39 void renderWater(float a); 40 void renderFire(float a); 41 int lastSlot; 42public: 43 void tick(); 44 void itemPlaced(); 45 void itemUsed(); 46};