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 FlowerPotTile : public Tile
6{
7public:
8 static const int TYPE_FLOWER_RED = 1;
9 static const int TYPE_FLOWER_YELLOW = 2;
10 static const int TYPE_SAPLING_DEFAULT = 3;
11 static const int TYPE_SAPLING_EVERGREEN = 4;
12 static const int TYPE_SAPLING_BIRCH = 5;
13 static const int TYPE_SAPLING_JUNGLE = 6;
14 static const int TYPE_MUSHROOM_RED = 7;
15 static const int TYPE_MUSHROOM_BROWN = 8;
16 static const int TYPE_CACTUS = 9;
17 static const int TYPE_DEAD_BUSH = 10;
18 static const int TYPE_FERN = 11;
19
20 FlowerPotTile(int id);
21
22 void updateDefaultShape();
23 bool isSolidRender(bool isServerLevel = false);
24 int getRenderShape();
25 bool isCubeShaped();
26 bool use(Level *level, int x, int y, int z, shared_ptr<Player> player, int clickedFace, float clickX, float clickY, float clickZ, bool soundOnly = false);
27 int cloneTileId(Level *level, int x, int y, int z);
28 int cloneTileData(Level *level, int x, int y, int z);
29 bool useOwnCloneData();
30 bool mayPlace(Level *level, int x, int y, int z);
31 void neighborChanged(Level *level, int x, int y, int z, int type);
32 using Tile::spawnResources;
33 void spawnResources(Level *level, int x, int y, int z, int data, float odds, int playerBonusLevel);
34 int getResource(int data, Random *random, int playerBonusLevel);
35 static shared_ptr<ItemInstance> getItemFromType(int type);
36 static int getTypeFromItem(shared_ptr<ItemInstance> item);
37};