Examples of IIcon


Examples of net.minecraft.util.IIcon

    GL11.glPushMatrix();
    GL11.glTranslatef((float) x, (float) y, (float) z);

    RenderUtil.bindBlockTexture();
    IIcon icon = EnderIO.blockHyperCube.getPortalIcon();

    Tessellator tessellator = Tessellator.instance;
    tessellator.startDrawingQuads();

    GL11.glEnable(GL11.GL_BLEND);
View Full Code Here

Examples of net.minecraft.util.IIcon

  private void renderFrame(IBlockAccess blockAccess, int x, int y, int z, TileEntityPaintedBlock tecb, boolean forceAllEdges, int meta) {

    if(blockAccess == null) {
      //No lighting
      IIcon texture = EnderIO.blockFusedQuartz.getItemIcon(meta);
      for (ForgeDirection face : ForgeDirection.VALID_DIRECTIONS) {
        if(tecb != null && tecb.getSourceBlock() != null) {
          texture = tecb.getSourceBlock().getIcon(face.ordinal(), tecb.getSourceBlockMetadata());
        }
        RenderUtil.renderConnectedTextureFace(blockAccess, x, y, z, face, texture, forceAllEdges);
View Full Code Here

Examples of net.minecraft.util.IIcon

    if(fullness > 0) {
      RenderUtil.bindTexture(getLiquidSheet());

      float margin = 0.01f;

      IIcon tex = getLiquidTexture();
      float maxV = tex.getMinV() + ((tex.getMaxV() - tex.getMinV()) * fullness);

      Tessellator.instance.startDrawingQuads();
      Tessellator.instance.setColorRGBA_F(val, val, val, 1);
      CubeRenderer.render(
          new BoundingBox(bb.minX + margin, bb.minY + margin, bb.minZ + margin, bb.maxX - margin,
              bb.minY + (fullness * (Math.abs(bb.maxY - bb.minY))) - margin, bb.maxZ - margin), tex.getMinU(), tex.getMaxU(), tex.getMinV(), maxV);
      Tessellator.instance.draw();
    }

    GL11.glPopAttrib();
    GL11.glPopMatrix();
View Full Code Here

Examples of net.minecraft.util.IIcon

    forward.scale(0.5);
    left.scale(0.125);
    up.scale(0.125);

    IIcon icon = block.switchIcon;

    tes.addVertexWithUV(offset.x + left.x - up.x, offset.y + left.y - up.y,
        offset.z + left.z - up.z, icon.getMinU(), icon.getMaxV());
    tes.addVertexWithUV(offset.x - left.x - up.x, offset.y - left.y - up.y,
        offset.z - left.z - up.z, icon.getMaxU(), icon.getMaxV());
    tes.addVertexWithUV(offset.x - left.x + up.x, offset.y - left.y + up.y,
        offset.z - left.z + up.z, icon.getMaxU(), icon.getMinV());
    tes.addVertexWithUV(offset.x + left.x + up.x, offset.y + left.y + up.y,
        offset.z + left.z + up.z, icon.getMinU(), icon.getMinV());

  }
View Full Code Here

Examples of net.minecraft.util.IIcon

    if(vat.getProgress() < 1 && vat.getProgress() > 0) {
      int scaled = vat.getProgressScaled(12);
      drawTexturedModalRect(guiLeft + 81, guiTop + 76 - scaled, 176, 12 - scaled, 14, scaled + 2);

      IIcon inputIcon = null;
      IPoweredTask task = vat.getCurrentTask();
      for (MachineRecipeInput input : task.getInputs()) {
        if(input.fluid != null && input.fluid.getFluid() != null) {
          inputIcon = input.fluid.getFluid().getStillIcon();
          break;
        }
      }
      IMachineRecipe rec = task.getRecipe();
      IIcon outputIcon = null;
      for (ResultStack res : rec.getCompletedResult(1.0f, task.getInputs())) {
        if(res.fluid != null && res.fluid.getFluid() != null) {
          outputIcon = res.fluid.getFluid().getStillIcon();
        }
      }
View Full Code Here

Examples of net.minecraft.util.IIcon

    @SideOnly(Side.CLIENT)
    @Override
    public boolean addHitEffects(World world, MovingObjectPosition target,
        EffectRenderer effectRenderer) {
      IIcon tex = null;

      TileEntityPaintedBlock cb = (TileEntityPaintedBlock)
          world.getTileEntity(target.blockX, target.blockY, target.blockZ);
      Block b = cb.getSourceBlock();
      if(b != null) {
View Full Code Here

Examples of net.minecraft.util.IIcon

    @Override
    @SideOnly(Side.CLIENT)
    public boolean addDestroyEffects(World world, int x, int y, int z, int
        meta, EffectRenderer effectRenderer) {
      IIcon tex = lastRemovedComponetIcon;
      byte b0 = 4;
      for (int j1 = 0; j1 < b0; ++j1) {
        for (int k1 = 0; k1 < b0; ++k1) {
          for (int l1 = 0; l1 < b0; ++l1) {
            double d0 = x + (j1 + 0.5D) / b0;
View Full Code Here

Examples of net.minecraft.util.IIcon

    GL11.glPushMatrix();
    GL11.glTranslatef((float) x, (float) y, (float) z);

    RenderUtil.bindBlockTexture();
    IIcon icon = EnderIO.blockHyperCube.getPortalIcon();

    Tessellator tessellator = Tessellator.instance;
    tessellator.startDrawingQuads();

    GL11.glEnable(GL11.GL_BLEND);
View Full Code Here

Examples of net.minecraft.util.IIcon

    bb = bb.translate(0, -0.5f + (slabWidth / 2), 0);
    setIcons(soulariumIcon, ForgeDirection.NORTH);

    CubeRenderer.render(bb, icons, true);

    IIcon endermanIcon;
    int facing = ForgeDirection.SOUTH.ordinal();;
    if(world == null || !(world.getTileEntity(x, y, z) instanceof TileSoulBinder)) {
      endermanIcon = EnderIO.blockSoulFuser.endermanSkullIcon;
    } else {
      TileSoulBinder sb = (TileSoulBinder) world.getTileEntity(x, y, z);
View Full Code Here

Examples of net.minecraft.util.IIcon

      if(gen != null && par1Block instanceof AbstractMachineBlock) {
        Vector3d offset = ForgeDirectionOffsets.offsetScaled(face, 0.01);
        Tessellator.instance.addTranslation((float) offset.x, (float) offset.y, (float) offset.z);

        IoMode mode = gen.getIoMode(face);
        IIcon tex = ((AbstractMachineBlock) par1Block).getOverlayIconForMode(mode);
        if(tex != null) {
          ccr.getCustomRenderBlocks().doDefaultRenderFace(face, par1Block, x, y, z, tex);
        }

        Tessellator.instance.addTranslation(-(float) offset.x, -(float) offset.y, -(float) offset.z);
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.