Examples of renderItemAndEffectIntoGUI()


Examples of net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI()

      GL11.glPushMatrix();
      float scale = 0.4f;
      GL11.glScalef(scale, scale, scale);
      GL11.glTranslatef(12, 2f, 0);
      RenderItem ri = new RenderItem();
      ri.renderItemAndEffectIntoGUI(Minecraft.getMinecraft().fontRenderer, Minecraft.getMinecraft().renderEngine,
          getFloatingStack(null, 0, 0, 0, 0), 0, 0);
      GL11.glPopMatrix();
      GL11.glEnable(GL11.GL_LIGHTING);
    } else {
      GL11.glTranslatef(0, 0.25f, 0);
View Full Code Here

Examples of net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI()

      int x = 15;
      int y = 10;
      int count = 0;
      for(ItemStack st : snapshot) {
        if(st != null) {
          itemRenderer.renderItemAndEffectIntoGUI(mc.fontRenderer, mc.getTextureManager(), st, x, y);
          //itemRender.renderItemOverlayIntoGUI(mc.fontRenderer, mc.getTextureManager(), st, x, y, s); 
        }       
        x += 20;
        count++;
        if(count % 9 == 0) {
View Full Code Here

Examples of net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI()

    GL11.glEnable(GL11.GL_BLEND);
    GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
    RenderHelper.enableGUIStandardItemLighting();
    GL11.glEnable(GL12.GL_RESCALE_NORMAL);
    GL11.glEnable(GL11.GL_DEPTH_TEST);
    render.renderItemAndEffectIntoGUI(Minecraft.getMinecraft().fontRenderer, Minecraft.getMinecraft().getTextureManager(), stack, xPos, yPos);
    render.renderItemOverlayIntoGUI(Minecraft.getMinecraft().fontRenderer, Minecraft.getMinecraft().getTextureManager(), stack, xPos, yPos);
    RenderHelper.disableStandardItemLighting();
    GL11.glPopMatrix();

    if(relativeMouseX >= xPos && relativeMouseY >= yPos && relativeMouseX <= xPos + 16 && relativeMouseY <= yPos + 16) {
View Full Code Here

Examples of net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI()

    GL11.glEnable(GL11.GL_BLEND);
    GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
    RenderHelper.enableGUIStandardItemLighting();
    GL11.glEnable(GL12.GL_RESCALE_NORMAL);
    GL11.glEnable(GL11.GL_DEPTH_TEST);
    render.renderItemAndEffectIntoGUI(Minecraft.getMinecraft().fontRenderer, Minecraft.getMinecraft().getTextureManager(), stack, xPos, yPos);
    render.renderItemOverlayIntoGUI(Minecraft.getMinecraft().fontRenderer, Minecraft.getMinecraft().getTextureManager(), stack, xPos, yPos);
    RenderHelper.disableStandardItemLighting();
    GL11.glPopMatrix();

    if(relativeMouseX >= xPos && relativeMouseY >= yPos && relativeMouseX <= xPos + 16 && relativeMouseY <= yPos + 16) {
View Full Code Here

Examples of net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI()

              renderItem.renderItemIntoGUI(fontRenderer, mc.renderEngine, st, x, y);
            }
          }
        } else {
          GL11.glTranslated(0, 0, 3.0);
          renderItem.renderItemAndEffectIntoGUI(fontRenderer, mc.renderEngine, st, x, y);
          GL11.glTranslated(0, 0, -3.0);
        }
      }
     
      GL11.glEnable(GL11.GL_LIGHTING);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.