MCPcopy Create free account
hub / github.com/cuberite/cuberite / MakeIndex

Method MakeIndex

src/BlockArea.cpp:1759–1769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1757
1758
1759int cBlockArea::MakeIndex(int a_RelX, int a_RelY, int a_RelZ) const
1760{
1761 ASSERT(a_RelX >= 0);
1762 ASSERT(a_RelX < m_Size.x);
1763 ASSERT(a_RelY >= 0);
1764 ASSERT(a_RelY < m_Size.y);
1765 ASSERT(a_RelZ >= 0);
1766 ASSERT(a_RelZ < m_Size.z);
1767
1768 return a_RelX + a_RelZ * m_Size.x + a_RelY * m_Size.x * m_Size.z;
1769}
1770
1771
1772

Callers 4

CopyNibblesMethod · 0.45
BlockTypesMethod · 0.45
WriteBlockAreaMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected