Created
August 7, 2014 11:40
-
-
Save witchica/daf7d58f2df39138d7f8 to your computer and use it in GitHub Desktop.
Broken Mob Rendering
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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