summaryrefslogtreecommitdiffstats
path: root/src/BlockArea.cpp
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.cpp
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 '')
-rw-r--r--src/BlockArea.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/BlockArea.cpp b/src/BlockArea.cpp
index eb3e82108..ea1bbe533 100644
--- a/src/BlockArea.cpp
+++ b/src/BlockArea.cpp
@@ -1952,6 +1952,18 @@ void cBlockArea::GetRelBlockTypeMeta(int a_RelX, int a_RelY, int a_RelZ, BLOCKTY
+cCuboid cBlockArea::GetBounds(void) const
+{
+ return cCuboid(
+ m_Origin.x, m_Origin.y, m_Origin.z,
+ m_Origin.x + m_Size.x - 1, m_Origin.y + m_Size.y - 1, m_Origin.z + m_Size.z - 1
+ );
+}
+
+
+
+
+
size_t cBlockArea::CountNonAirBlocks(void) const
{
// Check if blocktypes are valid: