That's always fun, but sadly I've already done this in c#, java, javascript and c++... It's my go to thing when I am bored, but I am slowly running out of languages to implement it in :). I guess I have to learn Brainfuck or something.
Ive just used my container class to get the tile entity into the gui. Using:
container.tileEntity.variables
I just grab the variables I need straight from the tile entity. Not sure if this is the most correct way to do it but it works on both logical and physical servers with no issue.