UPDATE: Ok this was a real lot of work. I've created a concept to send the array to the Peripheral and it worked, until I ran into problems because lua was not able to handle all the parameters.
I've tried different stuff some of which I didn't liked from the beginning on. I tried a JSON String but it didn't work for some reason. What I ended up with is not the prettiest and best solution but it works and is an ok compromise.
How it works (may be interesting for other modders as well:
I use a lua JSON api to convert my table into a JSON string. (
http://regex.info/blog/lua/json)
Next I save the table to a file and call my peripheral function with the name of that file.
In Java I load the file and convert it to a HashMap (
http://wiki.fasterxm...onInFiveMinutes)
String p = ModLoader.getMinecraftInstance().getMinecraftDir() + "\\saves\\" + myTurtle.getWorld().getWorldInfo().getWorldName() + "\\computer\\" + (String) arguments[0];
File f = new File(p);
Map m1 = new ObjectMapper().readValue(f, HashMap.class);
Now I recursively turn this HashMap into an NBTTag which I then write to the TileEntity.
In lua I now delete the temporary file.
For the non-developers:
You can now simply manipulate the table and call a function from the api
Now I'll quickly write an api and make a separate thread in the peripheral section.