Skip to content

Instantly share code, notes, and snippets.

Created June 16, 2016 16:26
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