Created
June 16, 2016 16:26
This file contains 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
private void drawItemImage(ItemStack is, int xPos, int yPos, float spin) { | |
GlStateManager.pushMatrix(); | |
GlStateManager.translate(xPos, yPos, 300); | |
GlStateManager.rotate(45, 0, 1, 0); | |
GlStateManager.rotate(15, 0, 0, 1); | |
GlStateManager.rotate(195, 1, 0, 0); | |
GlStateManager.rotate(spin++ % 360, 0, 1, 0); | |
GlStateManager.scale(100, 100, 100); | |
RenderHelper.enableGUIStandardItemLighting(); | |
mc.getRenderItem().renderItem(is, ItemCameraTransforms.TransformType.GROUND); | |
GlStateManager.popMatrix(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment