1
0

BlockArea: Added the GetBounds function.

This commit is contained in:
Mattes D
2017-07-22 19:56:56 +02:00
parent 51c6606fd4
commit 64561175ab
3 changed files with 33 additions and 4 deletions

View File

@@ -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: