Rendering is partially-functional; I have an idea to make this more efficient, will do later

This commit is contained in:
Aidan C. Brady 2013-10-22 07:54:09 -04:00
parent 33c8f960f3
commit c7dcea6a06

View file

@ -65,9 +65,16 @@ public class RenderLogisticalTransporter extends TileEntitySpecialRenderer
entityItem.setEntityItemStack(stack.itemStack);
Object3D offset = new Object3D(0, 0, 0).step(ForgeDirection.getOrientation(stack.getSide(tileEntity)));
double progress = (double)stack.progress / 100D * 0.5D;
float itemFix = 0;
renderer.doRenderItem(entityItem, x + 0.5 + offset.xCoord*progress, y + 0.5 + offset.yCoord*progress - entityItem.yOffset, z + 0.5 + offset.zCoord*progress, 0, 0);
if(stack.itemStack.itemID >= 256)
{
itemFix = 0.1F;
}
double progress = ((double)stack.progress / 100D) - 0.5;
renderer.doRenderItem(entityItem, x + 0.5 + offset.xCoord*progress, y + 0.5 + offset.yCoord*progress - entityItem.yOffset - itemFix, z + 0.5 + offset.zCoord*progress, 0, 0);
GL11.glPopMatrix();
}
}