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

Function GetConiferTreeImage

src/Generating/Trees.cpp:441–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439
440
441void GetConiferTreeImage(int a_BlockX, int a_BlockY, int a_BlockZ, cNoise & a_Noise, int a_Seq, sSetBlockVector & a_LogBlocks, sSetBlockVector & a_OtherBlocks)
442{
443 // Half chance for a spruce, half for a pine:
444 if (a_Noise.IntNoise3DInt(a_BlockX + 64 * a_Seq, a_BlockY, a_BlockZ + 32 * a_Seq) < 0x40000000)
445 {
446 GetSpruceTreeImage(a_BlockX, a_BlockY, a_BlockZ, a_Noise, a_Seq, a_LogBlocks, a_OtherBlocks);
447 }
448 else
449 {
450 GetPineTreeImage(a_BlockX, a_BlockY, a_BlockZ, a_Noise, a_Seq, a_LogBlocks, a_OtherBlocks);
451 }
452}
453
454
455

Callers 3

GrowTreeFromSaplingMethod · 0.85
Trees.hFile · 0.85
GetTreeImageByBiomeFunction · 0.85

Calls 3

GetSpruceTreeImageFunction · 0.85
GetPineTreeImageFunction · 0.85
IntNoise3DIntMethod · 0.80

Tested by

no test coverage detected