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

Function GetAppleBushImage

src/Generating/Trees.cpp:655–669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653
654
655void GetAppleBushImage(int a_BlockX, int a_BlockY, int a_BlockZ, cNoise & a_Noise, int a_Seq, sSetBlockVector & a_LogBlocks, sSetBlockVector & a_OtherBlocks)
656{
657 a_OtherBlocks.reserve(3 + ARRAYCOUNT(BigO2) + ARRAYCOUNT(BigO1));
658
659 int hei = a_BlockY;
660 a_LogBlocks.push_back(sSetBlock(a_BlockX, hei, a_BlockZ, E_BLOCK_LOG, E_META_LOG_JUNGLE));
661 PushCoordBlocks(a_BlockX, hei, a_BlockZ, a_OtherBlocks, BigO2, ARRAYCOUNT(BigO2), E_BLOCK_LEAVES, E_META_LEAVES_APPLE);
662 hei++;
663
664 a_OtherBlocks.push_back(sSetBlock(a_BlockX, hei, a_BlockZ, E_BLOCK_LEAVES, E_META_LEAVES_APPLE));
665 PushCoordBlocks(a_BlockX, hei, a_BlockZ, a_OtherBlocks, BigO1, ARRAYCOUNT(BigO1), E_BLOCK_LEAVES, E_META_LEAVES_APPLE);
666 hei++;
667
668 a_OtherBlocks.push_back(sSetBlock(a_BlockX, hei, a_BlockZ, E_BLOCK_LEAVES, E_META_LEAVES_APPLE));
669}
670
671
672

Callers 2

Trees.hFile · 0.85
GetTreeImageByBiomeFunction · 0.85

Calls 2

sSetBlockClass · 0.85
PushCoordBlocksFunction · 0.85

Tested by

no test coverage detected