the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2#include "Bush_SPU.h"
3
4class NetherStalkTile_SPU : public Bush_SPU
5{
6private:
7 static const int MAX_AGE = 3;
8 static const int NETHER_STALK_TEXTURE_COUNT = 3;
9
10
11public:
12 NetherStalkTile_SPU(int id) : Bush_SPU(id) {}
13
14 virtual Icon_SPU *getTexture(int face, int data)
15 {
16 Icon_SPU* icons = ms_pTileData->netherStalk_icons;
17 if (data >= MAX_AGE)
18 {
19 return &icons[2];
20 }
21 if (data > 0)
22 {
23 return &icons[1];
24 }
25 return &icons[0];
26
27 }
28 virtual int getRenderShape() { return Tile_SPU::SHAPE_ROWS; }
29};