} else {
gen = null;
}
}
BoundingBox bb;
boolean scaleX = facing != 4 && facing != 5;
float scx;
float scz;
//middle chunk
bb = BoundingBox.UNIT_CUBE;
bb = bb.scale(1, 0.34, 1);
vt.setFacing(facing);
TranslatedCubeRenderer.instance.renderBoundingBox(x, y, z, block, bb, vt, null ,world != null);
scaleX = facing != 4 && facing != 5;
scx = scaleX ? 0.7f : 1;
scz = scaleX ? 1 : 0.7f;
//top 1/3
bb = BoundingBox.UNIT_CUBE;
bb = bb.scale(scx, 0.21, scz);
bb = bb.translate(0, 0.26f, 0);
TranslatedCubeRenderer.instance.renderBoundingBox(x, y, z, block, bb, vt, null ,world != null);
//lower 1/3
bb = BoundingBox.UNIT_CUBE;
bb = bb.scale(scx, 0.21, scz);
bb = bb.translate(0, -0.26f, 0);
TranslatedCubeRenderer.instance.renderBoundingBox(x, y, z, block, bb, vt, null ,world != null);
//top / bottom connectors
bb = BoundingBox.UNIT_CUBE.scale(0.35, 1, 0.35);
TranslatedCubeRenderer.instance.renderBoundingBox(x, y, z, block, bb, vt, null ,world != null);
//tanks
float size = 0.64f;
bb = BoundingBox.UNIT_CUBE.scale(0.98, 1, 0.98);
scx = scaleX ? size : 1;
scz = scaleX ? 1 : size;
bb = bb.scale(scx, 1, scz);
float tx = scaleX ? 0.5f: 0;
float tz = scaleX ? 0 : 0.5f;
bb = bb.translate(tx, 0, tz);
IIcon tex;
if(Config.combustionGeneratorUseOpaqueModel) {
tex = EnderIO.blockCombustionGenerator.getIcon(4,0);
} else {
tex = EnderIO.blockFusedQuartz.getDefaultFrameIcon(0);
}
TranslatedCubeRenderer.instance.renderBoundingBox(x, y, z, block, bb, vt, tex, world != null);
bb = bb.translate(-tx * 2, 0, -tz * 2);
TranslatedCubeRenderer.instance.renderBoundingBox(x, y, z, block, bb, vt,tex, world != null);
if(gen != null) {
ccr.renderBlock(world, block, x, y, z, overlayRenderer);
}