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

Function GetAppleTreeImage

src/Generating/Trees.cpp:269–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267
268
269void GetAppleTreeImage(int a_BlockX, int a_BlockY, int a_BlockZ, cNoise & a_Noise, int a_Seq, sSetBlockVector & a_LogBlocks, sSetBlockVector & a_OtherBlocks)
270{
271 if (a_Noise.IntNoise3DInt(a_BlockX + 32 * a_Seq, a_BlockY + 32 * a_Seq, a_BlockZ) < 0x60000000)
272 {
273 GetSmallAppleTreeImage(a_BlockX, a_BlockY, a_BlockZ, a_Noise, a_Seq, a_LogBlocks, a_OtherBlocks);
274 }
275 else
276 {
277 GetLargeAppleTreeImage(a_BlockX, a_BlockY, a_BlockZ, a_Noise, a_Seq, a_LogBlocks, a_OtherBlocks);
278 }
279}
280
281
282

Callers 3

GrowTreeFromSaplingMethod · 0.85
Trees.hFile · 0.85
GetTreeImageByBiomeFunction · 0.85

Calls 3

GetSmallAppleTreeImageFunction · 0.85
GetLargeAppleTreeImageFunction · 0.85
IntNoise3DIntMethod · 0.80

Tested by

no test coverage detected