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

Method Draw

src/Generating/Prefab.cpp:143–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141
142
143void cPrefab::Draw(cChunkDesc & a_Dest, const cPlacedPiece * a_Placement) const
144{
145 Vector3i Placement = a_Placement->GetCoords();
146 int ChunkStartX = a_Dest.GetChunkX() * cChunkDef::Width;
147 int ChunkStartZ = a_Dest.GetChunkZ() * cChunkDef::Width;
148 Placement.Move(-ChunkStartX, 0, -ChunkStartZ);
149 a_Dest.WriteBlockArea(m_BlockArea[a_Placement->GetNumCCWRotations()], Placement.x, Placement.y, Placement.z, m_MergeStrategy);
150
151}
152
153
154

Callers 1

ProcessChunkMethod · 0.80

Calls 5

GetNumCCWRotationsMethod · 0.80
GetChunkXMethod · 0.45
GetChunkZMethod · 0.45
MoveMethod · 0.45
WriteBlockAreaMethod · 0.45

Tested by

no test coverage detected