Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void renderItem(Item item) {
- IIcon icon = item.getIconFromDamage(0);
- float u0 = icon.getMinU();
- float u1 = icon.getMaxU();
- float v0 = icon.getMinV();
- float v1 = icon.getMaxV();
- if (item.getSpriteNumber() == 0)
- {
- this.bindTexture(TextureMap.locationBlocksTexture);
- }
- else
- {
- this.bindTexture(TextureMap.locationItemsTexture);
- }
- GL11.glTranslated(-.5, -.5, 0.03125);
- ItemRenderer.renderItemIn2D(Tessellator.instance, u1, v0, u0, v1, icon.getIconWidth(), icon.getIconHeight(), 0.0625f);
- GL11.glTranslated(.5, .5, -0.03125);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement