Get list of building blocks attached to a TC

Hello, I am working on an auto upgrade plugin as my first plugin dev experience. I would like to get a list of the building blocks attached to a TC as a ItemContainer object.

Any help would be appreciated !

Point your decompiler at it and see how it pays upkeep.  =)

i ended up finding solutions from reading a bunch of other plugins and using decompiled csharp assemblies.

I think imo there should be a minimal documentation for stuff like that , should really help save a lot of time for new developers especially and would promote better coding overall. Sometimes ppl have ideas and obstacles like these make it really hard for new devs to make good code. I know that the journey was worth it becasue i ended up learning a lot from well made plugins but i always think the code i wrote could have been better becasue i would have made more efforts into making it better instead of finding solutions to basic problems like this.