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 "LocatableSource.h"
4
5class Tile;
6class Material;
7class TileEntity;
8
9class BlockSource : public LocatableSource
10{
11public:
12 /**
13 * @return The X coordinate for the middle of the block
14 */
15 virtual double getX() = 0;
16
17 /**
18 * @return The Y coordinate for the middle of the block
19 */
20 virtual double getY() = 0;
21
22 /**
23 * @return The Z coordinate for the middle of the block
24 */
25 virtual double getZ() = 0;
26
27 virtual int getBlockX() = 0;
28 virtual int getBlockY() = 0;
29 virtual int getBlockZ() = 0;
30
31 virtual Tile *getType() = 0;
32 virtual int getData() = 0;
33 virtual Material *getMaterial() = 0;
34
35 virtual shared_ptr<TileEntity> getEntity() = 0;
36};