Skip to content

Instantly share code, notes, and snippets.

@witchica
Created August 7, 2014 11:40
Show Gist options
  • Save witchica/daf7d58f2df39138d7f8 to your computer and use it in GitHub Desktop.
Save witchica/daf7d58f2df39138d7f8 to your computer and use it in GitHub Desktop.
Broken Mob Rendering
@Override
protected void drawGuiContainerForegroundLayer(int i, int j)
{
super.drawGuiContainerForegroundLayer(i, j);
try
{
GL11.glPushMatrix();
GL11.glTranslatef(guiLeft + (256 / 2), guiTop + 97, 100);
GL11.glScalef(-30f, 30f, 30f);
GL11.glRotatef(180, 0, 0, 1);
GL11.glRotatef(rotation, 0, 1, 0);
RenderHelper.enableStandardItemLighting();
RenderManager.instance.renderEntityWithPosYaw((Entity) entityList.toArray()[selected], 0, 0, 0, 0, 0);
RenderHelper.disableStandardItemLighting();
GL11.glPopMatrix();
rotation += 1f;
}
catch(Exception e)
{
e.printStackTrace();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment