// something to do?
if (trunkHeight > 0) {
// a place to work
RelativeBlocks blocks = new RelativeBlocks(generator, chunk);
// do the trunk
generateTrunkBlock(blocks, x, y, z, trunkWidth, trunkHeight, trunkMaterial, trunkBlackMagicData);
// and then do the leaves... maybe