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

Method GrowTree

src/World.cpp:1235–1247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1233
1234
1235void cWorld::GrowTree(int a_X, int a_Y, int a_Z)
1236{
1237 if (GetBlock(a_X, a_Y, a_Z) == E_BLOCK_SAPLING)
1238 {
1239 // There is a sapling here, grow a tree according to its type:
1240 GrowTreeFromSapling(a_X, a_Y, a_Z, GetBlockMeta(a_X, a_Y, a_Z));
1241 }
1242 else
1243 {
1244 // There is nothing here, grow a tree based on the current biome here:
1245 GrowTreeByBiome(a_X, a_Y, a_Z);
1246 }
1247}
1248
1249
1250

Callers 1

OnUpdateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected