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

Method qSetBlock

Source/World/Chunk/Full_Chunk.cpp:74–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 }
73
74 void Full_Chunk::qSetBlock(const Block::Position& position,
75 CBlock block)
76 {
77 addSections(position.y);
78 updateTopBlockLocation(position);
79
80 auto blockPos = Maths::Convert::chunkBlockToSectionBlockPosition(position);
81
82 editableGetSection(position.y / CHUNK_SIZE)
83 ->qSetBlock(blockPos, block);
84 }
85
86 CBlock Full_Chunk::getBlock(const Block::Position& position) const
87 {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected