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

Function PushSomeColumns

src/Generating/Trees.cpp:133–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131
132
133inline void PushSomeColumns(int a_BlockX, int a_Height, int a_BlockZ, int a_ColumnHeight, int a_Seq, cNoise & a_Noise, int a_Chance, sSetBlockVector & a_Blocks, const sMetaCoords * a_Coords, size_t a_NumCoords, BLOCKTYPE a_BlockType)
134{
135 for (size_t i = 0; i < a_NumCoords; i++)
136 {
137 int x = a_BlockX + a_Coords[i].x;
138 int z = a_BlockZ + a_Coords[i].z;
139 if (a_Noise.IntNoise3DInt(x + 64 * a_Seq, a_Height + i, z + 64 * a_Seq) <= a_Chance)
140 {
141 for (int j = 0; j < a_ColumnHeight; j++)
142 {
143 a_Blocks.push_back(sSetBlock(x, a_Height - j, z, a_BlockType, a_Coords[i].Meta));
144 }
145 }
146 } // for i - a_Coords[]
147}
148
149
150

Callers 3

GetSwampTreeImageFunction · 0.85
GetLargeJungleTreeImageFunction · 0.85
GetSmallJungleTreeImageFunction · 0.85

Calls 2

sSetBlockClass · 0.85
IntNoise3DIntMethod · 0.80

Tested by

no test coverage detected