summaryrefslogtreecommitdiffstats
path: root/src/BlockArea.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2017-07-22 19:56:56 +0200
committerMattes D <github@xoft.cz>2017-07-22 19:57:25 +0200
commit64561175abfd97c0f05a95ca201b6c5aeb4ad412 (patch)
treed480aa7a68561e3d46f5f6e313b54f954794eceb /src/BlockArea.h
parentMerge pull request #3866 from lkolbly/mergeBlockEntitiesFix (diff)
downloadcuberite-64561175abfd97c0f05a95ca201b6c5aeb4ad412.tar
cuberite-64561175abfd97c0f05a95ca201b6c5aeb4ad412.tar.gz
cuberite-64561175abfd97c0f05a95ca201b6c5aeb4ad412.tar.bz2
cuberite-64561175abfd97c0f05a95ca201b6c5aeb4ad412.tar.lz
cuberite-64561175abfd97c0f05a95ca201b6c5aeb4ad412.tar.xz
cuberite-64561175abfd97c0f05a95ca201b6c5aeb4ad412.tar.zst
cuberite-64561175abfd97c0f05a95ca201b6c5aeb4ad412.zip
Diffstat (limited to 'src/BlockArea.h')
-rw-r--r--src/BlockArea.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/BlockArea.h b/src/BlockArea.h
index 583b998c2..42c1fa820 100644
--- a/src/BlockArea.h
+++ b/src/BlockArea.h
@@ -119,10 +119,12 @@ public:
// TODO: Write() is not too good an interface: if it fails, there's no way to repeat only for the parts that didn't write
// A better way may be to return a list of cBlockAreas for each part that didn't succeed writing, so that the caller may try again
- /** Writes the area back into cWorld at the coords specified. Returns true if successful in all chunks, false if only partially / not at all. */
+ /** Writes the area back into cWorld at the coords specified. Returns true if successful in all chunks, false if only partially / not at all.
+ Doesn't wake up the simulators. */
bool Write(cForEachChunkProvider & a_ForEachChunkProvider, int a_MinBlockX, int a_MinBlockY, int a_MinBlockZ, int a_DataTypes = baTypes | baMetas | baBlockEntities);
- /** Writes the area back into cWorld at the coords specified. Returns true if successful in all chunks, false if only partially / not at all. */
+ /** Writes the area back into cWorld at the coords specified. Returns true if successful in all chunks, false if only partially / not at all.
+ Doesn't wake up the simulators. */
bool Write(cForEachChunkProvider & a_ForEachChunkProvider, const Vector3i & a_MinCoords, int a_DataTypes = baTypes | baMetas | baBlockEntities);
// tolua_begin
@@ -321,6 +323,8 @@ public:
// tolua_begin
+ cCuboid GetBounds(void) const;
+
int GetSizeX(void) const { return m_Size.x; }
int GetSizeY(void) const { return m_Size.y; }
int GetSizeZ(void) const { return m_Size.z; }