renderer.renderBlocks().renderBlockAsItem(block, blockMeta, 1);
GL11.glPopMatrix();
return;
}
ModelTextured contents = CartModelManager.getContentModel(cart.getClass());
if (contents == CartModelManager.emptyModel)
return;
ResourceLocation texture = contents.getTexture();
if (texture == null)
return;
renderer.bindTex(texture);
GL11.glPushAttrib(GL11.GL_ENABLE_BIT);
if (!contents.cullBackFaces())
GL11.glDisable(GL11.GL_CULL_FACE);
GL11.glPushMatrix();
GL11.glTranslatef(-0.5F, blockOffset / 16.0F - 0.5F, -0.5F);
contents.render(cart, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
GL11.glEnable(GL11.GL_CULL_FACE);
GL11.glPopMatrix();
GL11.glPopAttrib();
}