MCPcopy Create free account
hub / github.com/Hopson97/HopsonCraft / editableGet

Method editableGet

Source/World/Chunk/Map.cpp:71–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70
71 Section* Map::editableGet(const Chunk::Chunklet_Position& position)
72 {
73 Position chunkPos (position.x, position.z);
74 if (existsAt(chunkPos))
75 {
76 return m_chunksMap[chunkPos].editableGetSection(position.y);
77 }
78 else
79 {
80 addChunk(m_tempChunks, chunkPos, false);
81 return m_tempChunks[chunkPos].editableGetSection(position.y);
82 }
83 }
84
85 Full_Chunk& Map::editableGet(const Chunk::Position& position)
86 {

Callers 5

getHeightAtMethod · 0.80
regenerateChunksMethod · 0.80
generateWorldMethod · 0.80
getSectionFunction · 0.80
getConstSectionFunction · 0.80

Calls 1

editableGetSectionMethod · 0.80

Tested by

no test coverage detected