parse nbt into java source code