@Override public void renderTileEntityAt(TileEntity te, double x, double y, double z, float delta) { TileWindmillBlade blade = (TileWindmillBlade) te; if (blade.isControl) { GL11.glPushMatrix(); bindTexture(texture); GL11.glTranslated(x + 0.5d, y + 0.5d, z + 0.5d); renderModel( -getRotation(blade.rotation, blade.prevRotation, delta), blade.windmillDirection, (blade.windmillSize - 1) / 2); GL11.glPopMatrix(); } else if (blade.controlPos == null) { GL11.glPushMatrix(); bindTexture(cubeTexture); GL11.glTranslated(x + 0.5d, y + 0.5d, z + 0.5d); cube.renderModel(); GL11.glPopMatrix(); } }