Posted September 15, 201411 yr Hi, I'd like to get the icon of the looked elements (blocks, animals, mobs, etc.). I can get it for the blocks: IIcon icon = block.getIcon(0, 0); but how to do this for the living entities? EntityLivingBase hasn't "getIcon" or any similar methods. EntityLivingBase entity = GetEntityLookAt(....); Any help would be appreciated. Thanks, Istvan
September 15, 201411 yr You'd need to render them at small size. -S- (if I helped, please click Thank and applaud) http://6upnqa.dm2301.livefilestore.com/y2mtf-vG7Tqq1TiiVpIm53KWj7294NDPoHfSHHb4PzZiMAUfRCfK0UY0MwOu7Q3zTBNVTKqWjr2-xgBfFRpQT5p-QivtvknPpoABMNUw9br9WuZcBFkjePhnAbW500gVm-P/sequiturian.png[/img]
September 20, 201411 yr Author Thank you, that works. GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS); GL11.glPushMatrix(); RenderLiving renderLiving = (RenderLiving) RenderManager.instance.getEntityClassRenderObject(entity.getClass()); GL11.glTranslatef(posX, posY, 0); GL11.glRotatef(180, 0, 0, 1); // Rotate from upside-down GL11.glScaled(25, 25, 25); GL11.glScalef(0.5f, 0.5f, 0.5f); // Resize renderLiving.doRender(entity, 1, 1, 1, 0, 0); GL11.glPopMatrix(); GL11.glPopAttrib();
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.