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 "LevelSource.h"
4
5class Material;
6class TileEntity;
7class BiomeSource;
8
9class Region : public LevelSource
10{
11private:
12 int xc1, zc1;
13 LevelChunk2DArray *chunks;
14 Level *level;
15 bool allEmpty;
16
17 // AP - added a caching system for Chunk::rebuild to take advantage of
18 int xcCached, zcCached;
19 unsigned char *CachedTiles;
20
21public:
22 Region(Level *level, int x1, int y1, int z1, int x2, int y2, int z2, int r);
23 virtual ~Region();
24 bool isAllEmpty();
25 int getTile(int x, int y, int z);
26 shared_ptr<TileEntity> getTileEntity(int x, int y, int z);
27 float getBrightness(int x, int y, int z, int emitt);
28 float getBrightness(int x, int y, int z);
29 int getLightColor(int x, int y, int z, int emitt, int tileId = -1); // 4J - change brought forward from 1.8.2
30 int getRawBrightness(int x, int y, int z);
31 int getRawBrightness(int x, int y, int z, bool propagate);
32 int getData(int x, int y, int z);
33 Material *getMaterial(int x, int y, int z);
34 BiomeSource *getBiomeSource();
35 Biome *getBiome(int x, int z);
36 bool isSolidRenderTile(int x, int y, int z);
37 bool isSolidBlockingTile(int x, int y, int z);
38 bool isTopSolidBlocking(int x, int y, int z);
39 bool isEmptyTile(int x, int y, int z);
40
41 // 4J - changes brought forward from 1.8.2
42 int getBrightnessPropagate(LightLayer::variety layer, int x, int y, int z, int tileId); // 4J added tileId
43 int getBrightness(LightLayer::variety layer, int x, int y, int z);
44
45 int getMaxBuildHeight();
46 int getDirectSignal(int x, int y, int z, int dir);
47
48 LevelChunk* getLevelChunk(int x, int y, int z);
49
50 // AP - added a caching system for Chunk::rebuild to take advantage of
51 void setCachedTiles(unsigned char *tiles, int xc, int zc);
52};