System.exit(1);
}
}
}
TestRenderer renderer;
if (!block.isEmpty()) {
int sep = block.indexOf(':');
String blockPart;
String metadataPart = "";
if (sep == -1) {
blockPart = block;
} else {
blockPart = block.substring(0, sep);
if (sep+1 < block.length()) {
metadataPart = block.substring(sep+1);
}
}
int blockId = Integer.parseInt(blockPart);
int metadata = 0;
if (!metadataPart.isEmpty()) {
metadata = Integer.parseInt(metadataPart);
}
renderer = new TestRenderer(null,
blockId | (metadata << BlockData.OFFSET),
targetFile);
} else {
renderer = new TestRenderer(null, -1, targetFile);
}
renderer.start();
}