summaryrefslogtreecommitdiffstats
path: root/source/Chunk.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-06 18:58:31 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-06 18:58:31 +0200
commit4c370798d52b1b7c055c49ff4a38f73cf720c82e (patch)
treecb9c7233b4b55d8e6cb1fab410b81ea16f89d353 /source/Chunk.h
parentLua plugins can get player's equipped item (diff)
downloadcuberite-4c370798d52b1b7c055c49ff4a38f73cf720c82e.tar
cuberite-4c370798d52b1b7c055c49ff4a38f73cf720c82e.tar.gz
cuberite-4c370798d52b1b7c055c49ff4a38f73cf720c82e.tar.bz2
cuberite-4c370798d52b1b7c055c49ff4a38f73cf720c82e.tar.lz
cuberite-4c370798d52b1b7c055c49ff4a38f73cf720c82e.tar.xz
cuberite-4c370798d52b1b7c055c49ff4a38f73cf720c82e.tar.zst
cuberite-4c370798d52b1b7c055c49ff4a38f73cf720c82e.zip
Diffstat (limited to 'source/Chunk.h')
-rw-r--r--source/Chunk.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/Chunk.h b/source/Chunk.h
index 480dea796..0a51e99d2 100644
--- a/source/Chunk.h
+++ b/source/Chunk.h
@@ -43,6 +43,7 @@ class cBlockArea;
class cPawn;
class cPickup;
class cChunkDataSerializer;
+class cBlockArea;
typedef std::list<cClientHandle *> cClientHandleList;
typedef cItemCallback<cEntity> cEntityCallback;
@@ -108,6 +109,9 @@ public:
/// Copies entire block data into a_BlockData, the entire 4 arrays (Type, Meta, Light, SkyLight)
void GetBlockData(BLOCKTYPE * a_BlockData);
+ /// Writes the specified cBlockArea at the coords specified. Note that the coords may extend beyond the chunk!
+ void WriteBlockArea(cBlockArea & a_Area, int a_MinBlockX, int a_MinBlockY, int a_MinBlockZ, int a_DataTypes);
+
/// Returns true if there is a block entity at the coords specified
bool HasBlockEntityAt(int a_BlockX, int a_BlockY, int a_BlockZ);