fCraft.PlantTask.MakeTrunks C# (CSharp) Method

MakeTrunks() private method

private MakeTrunks ( short height, TreeType type ) : void
height short
type TreeType
return void
        private void MakeTrunks( short height, TreeType type )
        {
            for ( short i = 0; i < height; ++i ) {
                _map.QueueUpdate( new BlockUpdate( null, _x, _y, ( short )( _z + i ), Block.Log ) );
            }
            if ( TreeType.Normal == type )
                TreeGeneration.MakeNormalFoliage( _world, new Vector3I( _x, _y, _z ), height + 1 );
            else
                TreeGeneration.MakePalmFoliage( _world, new Vector3I( _x, _y, _z ), height );
        }