Package vazkii.botania.api.mana

Examples of vazkii.botania.api.mana.ILens


    GL11.glScalef(1F, -1F, -1F);
    ItemStack stack = spreader.getStackInSlot(0);

    if(stack != null) {
      Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationItemsTexture);
      ILens lens = (ILens) stack.getItem();
      GL11.glPushMatrix();
      GL11.glTranslatef(-0.4F, -1.4F, -0.4375F);
      GL11.glScalef(0.8F, 0.8F, 0.8F);
      RenderLens.render(stack, lens.getLensColor(stack));
      GL11.glPopMatrix();
    }
    GL11.glEnable(GL12.GL_RESCALE_NORMAL);
    GL11.glPopMatrix();
  }
View Full Code Here


          else secondLens = stack;
      }
    }

    if(lens.getItem() instanceof ILens) {
      ILens lensItem = (ILens) lens.getItem();
      if(secondLens == null || !lensItem.canCombineLenses(lens, secondLens) || lensItem.getCompositeLens(lens) != null || lensItem.getCompositeLens(secondLens) != null)
        return null;

      ItemStack lensCopy = lens.copy();
      ((ItemLens) ModItems.lens).setCompositeLens(lensCopy, secondLens);
View Full Code Here

TOP

Related Classes of vazkii.botania.api.mana.ILens

Copyright © 2018 www.massapicom. 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.