the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2using namespace std;
3
4#include "..\Minecraft.World\IconRegister.h"
5
6class Icon;
7class StitchedTexture;
8class Texture;
9class BufferedImage;
10
11// 4J Added this class to stop having to do texture stitching at runtime
12class PreStitchedTextureMap : public IconRegister
13{
14public:
15 static const wstring NAME_MISSING_TEXTURE;
16
17private:
18 const int iconType;
19
20 const wstring name;
21 const wstring path;
22 const wstring extension;
23
24 bool m_mipMap;
25
26 typedef unordered_map<wstring, Icon *> stringIconMap;
27 stringIconMap texturesByName; // = new HashMap<String, StitchedTexture>();
28 BufferedImage *missingTexture; // = new BufferedImage(64, 64, BufferedImage.TYPE_INT_ARGB);
29 StitchedTexture *missingPosition;
30 Texture *stitchResult;
31 vector<StitchedTexture *> animatedTextures; // = new ArrayList<StitchedTexture>();
32
33 void loadUVs();
34public:
35 PreStitchedTextureMap(int type, const wstring &name, const wstring &path, BufferedImage *missingTexture, bool mipMap = false);
36
37 void stitch();
38
39private:
40 void makeTextureAnimated(TexturePack *texturePack, StitchedTexture *tex);
41
42public:
43 StitchedTexture *getTexture(const wstring &name);
44 void cycleAnimationFrames();
45 Texture *getStitchedTexture();
46
47 // 4J Stu - register is a reserved keyword in C++
48 Icon *registerIcon(const wstring &name);
49
50 int getIconType();
51 Icon *getMissingIcon();
52
53 int getFlags() const;
54};