@Override
public void renderDynamic(float size, TileEntity te, float partialTicks){
FMLClientHandler.instance().getClient().getTextureManager().bindTexture(te != null && te.getBlockMetadata() == 0 ? Textures.MODEL_ASSEMBLY_ROBOT_BLUE : Textures.MODEL_ASSEMBLY_ROBOT_ORANGE);
if(te instanceof TileEntityAssemblyIOUnit) {
TileEntityAssemblyIOUnit tile = (TileEntityAssemblyIOUnit)te;
float[] renderAngles = new float[5];
for(int i = 0; i < 5; i++) {
renderAngles[i] = tile.oldAngles[i] + (tile.angles[i] - tile.oldAngles[i]) * partialTicks;
}
// float rotationAngle = (float) (720.0 *
// (System.currentTimeMillis() & 0x3FFFL) / 0x3FFFL);
EntityItem ghostEntityItem = null;
if(tile.inventory[0] != null) {
ghostEntityItem = new EntityItem(tile.getWorldObj());
ghostEntityItem.hoverStart = 0.0F;
ghostEntityItem.setEntityItemStack(tile.inventory[0]);
}
boolean fancySetting = RenderManager.instance.options.fancyGraphics;
RenderManager.instance.options.fancyGraphics = true;