the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3#include "Tile.h"
4
5class QuartzBlockTile : public Tile
6{
7 friend class ChunkRebuildData;
8public:
9 static const int TYPE_DEFAULT = 0;
10 static const int TYPE_CHISELED = 1;
11 static const int TYPE_LINES_Y = 2;
12 static const int TYPE_LINES_X = 3;
13 static const int TYPE_LINES_Z = 4;
14
15 static const int QUARTZ_BLOCK_NAMES = 5;
16
17 static int BLOCK_NAMES[QUARTZ_BLOCK_NAMES];
18
19private:
20 static const int QUARTZ_BLOCK_TEXTURES = 5;
21
22 static const wstring TEXTURE_TOP;
23 static const wstring TEXTURE_CHISELED_TOP;
24 static const wstring TEXTURE_LINES_TOP;
25 static const wstring TEXTURE_BOTTOM;
26 static const wstring TEXTURE_NAMES[QUARTZ_BLOCK_TEXTURES];
27
28 Icon *icons[QUARTZ_BLOCK_TEXTURES];
29 Icon *iconChiseledTop;
30 Icon *iconLinesTop;
31 Icon *iconTop;
32 Icon *iconBottom;
33
34public:
35 QuartzBlockTile(int id);
36
37 Icon *getTexture(int face, int data);
38 int getPlacedOnFaceDataValue(Level *level, int x, int y, int z, int face, float clickX, float clickY, float clickZ, int itemValue);
39 int getSpawnResourcesAuxValue(int data);
40
41protected:
42 shared_ptr<ItemInstance> getSilkTouchItemInstance(int data);
43
44public:
45 int getRenderShape();
46 void registerIcons(IconRegister *iconRegister);
47};