TextureStudio ts=new TextureStudio();
ts.add("cobblestone","tile.cobblestone");
Block blockList=new Block();
blockList.add("block.cobblestone", ts.getTextureById("tile.cobblestone"));
Block cobblestone=blockList.getBlockById("block.cobblestone");
// ...
drawBlock(new Int2(posx, posy), new Int2(camx, camy), cobblestone);
// ...