Examples of IIcon


Examples of net.minecraft.util.IIcon

    BoundingBox bb = BoundingBox.UNIT_CUBE;
    TranslatedCubeRenderer.instance.renderBoundingBox(x, y, z, block, bb, xform, null, world != null);

    Tessellator.instance.addTranslation(x, y, z);

    IIcon icon = EnderIO.blockAttractor.getOnIcon();
    if(world != null) {
      icon = block.getIcon(world, x, y, z, 0);
    }

    float height = 0.475f;
View Full Code Here

Examples of net.minecraft.util.IIcon

        boolean translateToXyz) {

      ccr.getCustomRenderBlocks().doDefaultRenderFace(face,par1Block,x,y,z,texture);
      if(curEnt != null && par1Block instanceof AbstractMachineBlock) {
        IoMode mode = curEnt.getIoMode(face);
        IIcon tex = ((AbstractMachineBlock)par1Block).getOverlayIconForMode(mode);
        if(tex != null) {
          ccr.getCustomRenderBlocks().doDefaultRenderFace(face,par1Block,x,y,z, tex);
        }
      }
View Full Code Here

Examples of net.minecraft.util.IIcon

      return;
    }

    BoundingBox bb = new BoundingBox(selection.config.getLocation());

    IIcon icon = EnderIO.blockAlloySmelter.selectedFaceIcon;
    List<Vertex> corners = bb.getCornersWithUvForFace(selection.face,icon.getMinU(),icon.getMaxU(),icon.getMinV(),icon.getMaxV());

    GL11.glDisable(GL11.GL_DEPTH_TEST);
    GL11.glDisable(GL11.GL_LIGHTING);
    RenderUtil.bindBlockTexture();
    GL11.glColor3f(1,1,1);
View Full Code Here

Examples of net.minecraft.util.IIcon

      boolean translateToXYZ) {

    List<Vertex> finalVerts = new ArrayList<Vertex>();
    finalVerts.addAll(refVertices);

    IIcon borderTex = edgeTexureCallback == null ? null : edgeTexureCallback.getTextureForFace(face);
    if(borderTex != null) {

      texture = borderTex;
      List<ForgeDirection> edges;
      if(forceAllEdges) {
View Full Code Here

Examples of net.minecraft.util.IIcon

  public void render(double x, double y, double z, Matrix4d lookMat, int brightness) {

    GL11.glPushMatrix();
    GL11.glTranslated(x + 0.5, y + 0.5, z + 0.5);

    IIcon tex = Items.ender_eye.getIconFromDamage(0);
    RenderUtil.bindItemTexture();
    float minU = tex.getMinU();
    float maxU = tex.getMaxU();
    float minV = tex.getMinV();
    float maxV = tex.getMaxV();

    //GL11.glDisable(GL11.GL_CULL_FACE);
    GL11.glDepthMask(false);
    GL11.glColor3f(1, 1, 1);
    RenderUtil.renderBillboard(lookMat, minU, maxU, minV, maxV, 0.8, brightness);
View Full Code Here

Examples of net.minecraft.util.IIcon

    }
    GL11.glTranslatef(-0.25f, 0.2f, 0.05f);

    RenderUtil.bindItemTexture();

    IIcon icon = sword.getIconIndex();
    float f9 = 0.0625F;
    float minU = icon.getMinU();
    float maxU = icon.getMaxU();
    float minV = icon.getMinV();
    float maxV = icon.getMaxV();
    ItemRenderer.renderItemIn2D(Tessellator.instance, maxU, minV, minU, maxV, icon.getIconWidth(), icon.getIconHeight(), f9);

    GL11.glPopMatrix();
    GL11.glPopMatrix();

  }
View Full Code Here

Examples of net.minecraft.util.IIcon

  protected void renderFluid(TileKillerJoe gen) {
    FluidTank tank = gen.fuelTank;
    if(tank.getFluidAmount() <= 0) {
      return;
    }
    IIcon icon = tank.getFluid().getFluid().getStillIcon();
    if(icon != null) {
      RenderUtil.bindBlockTexture();
      Tessellator tes = Tessellator.instance;
      tes.startDrawingQuads();
View Full Code Here

Examples of net.minecraft.util.IIcon

      par1 *= par1;
      par1 = par1 * 0.9F + 0.1F;
    }
    GL11.glColor4f(1.0F, 1.0F, 1.0F, par1);
    RenderUtil.bindBlockTexture();
    IIcon icon = Blocks.portal.getBlockTextureFromSide(1);
    float f1 = icon.getMinU();
    float f2 = icon.getMinV();
    float f3 = icon.getMaxU();
    float f4 = icon.getMaxV();
    Tessellator tessellator = Tessellator.instance;
    tessellator.startDrawingQuads();
    tessellator.addVertexWithUV(0.0D, par3, -90.0D, f1, f4);
    tessellator.addVertexWithUV(par2, par3, -90.0D, f3, f4);
    tessellator.addVertexWithUV(par2, 0.0D, -90.0D, f3, f2);
View Full Code Here

Examples of net.minecraft.util.IIcon

  private void renderBolts(VertexRotation rot, float size) {
    BoundingBox bb;
    float boltSize = size/3;
    BoundingBox baseBolt = BoundingBox.UNIT_CUBE.scale(boltSize ,boltSize , boltSize);
    IIcon icon = EnderIO.blockSoulFuser.getIcon(ForgeDirection.EAST.ordinal(), 0);
   
    float offset = 0.15f;
    bb = baseBolt.translate(size + boltSize/2, -0.15f, offset);
    CubeRenderer.render(bb, icon, rot, true);
    bb = baseBolt.translate(size + boltSize/2, -0.15f, -offset);
View Full Code Here

Examples of net.minecraft.util.IIcon

              disabledBounds.maxX, disabledBounds.maxY, disabledBounds.maxZ);
        } else {
          rb.setRenderBounds(pushPullBounds.minX, pushPullBounds.minY, pushPullBounds.minZ,
              pushPullBounds.maxX, pushPullBounds.maxY, pushPullBounds.maxZ);     
        }
        IIcon icon = EnderIO.blockTransceiver.getOverlayIconForMode(mode);
        if(icon != null) {         
          rb.doDefaultRenderFace(dir, EnderIO.blockTransceiver, 0, 0, 0, icon);
        }
      }
    }
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.