Examples of addTranslation()


Examples of net.minecraft.client.renderer.Tessellator.addTranslation()

      }

      for (GaugeBounds gb : gaugeBounds) {
        if(gb.face == face) {
          Tessellator tes = Tessellator.instance;
          tes.addTranslation((float) x, (float) y, (float) z);
          int b = 0;
          Vector4f col = new Vector4f();
          int colCount = 0;
          for (Vertex v : refVertices) {
            b += v.brightness;
View Full Code Here

Examples of net.minecraft.client.renderer.Tessellator.addTranslation()

            tes.setColorRGBA_F(col.x, col.y, col.z, col.w);
          }
          renderGaugeOnFace(gb, EnderIO.blockCapacitorBank.overlayIcon, refVertices, x, y, z);
          renderFillBarOnFace(gb, EnderIO.blockCapacitorBank.fillBarIcon,capBank.getEnergyStoredRatio(), refVertices, x, y, z);
          capBank.lastRenderStoredRatio = capBank.getEnergyStoredRatio();
          tes.addTranslation((float) -x, (float) -y, (float) -z);
          return;
        }
      }
    }
View Full Code Here

Examples of net.minecraft.client.renderer.Tessellator.addTranslation()

   
    Tessellator tes = Tessellator.instance;
   
    IIcon baseIcon = EnderIO.blockWirelessCharger.getIcon(0, 0);
   
    tes.addTranslation(x, y, z);
   
    VertexTransform rot = new VertexRotation(Math.toRadians(45), new Vector3d(0,1,0), new Vector3d(0.5,0.5,0.5));
    VertexTransform trans = new VertexTranslation(0, -0.5 + 0.025, 0);
   
    VertexTransformComposite xform = new VertexTransformComposite(rot, trans);   
View Full Code Here

Examples of net.minecraft.client.renderer.Tessellator.addTranslation()

    xform = new VertexTransformComposite(trans, rot);
    CubeRenderer.render(BoundingBox.UNIT_CUBE.scale(0.25, 0.25, 0.01), baseIcon, xform, true);
    CubeRenderer.render(BoundingBox.UNIT_CUBE.scale(0.01, 1, 0.01), baseIcon, xform, true);
   
   
    tes.addTranslation(-x, -y, -z);
   
    return false;
  }

  @Override
View Full Code Here

Examples of net.minecraft.client.renderer.Tessellator.addTranslation()

  public void renderConduits(IConduitBundle bundle, double x, double y, double z, float partialTick, float brightness) {

    Tessellator tessellator = Tessellator.instance;
    tessellator.setColorOpaque_F(1, 1, 1);
    tessellator.addTranslation((float) x, (float) y, (float) z);

    // Conduits
    Set<ForgeDirection> externals = new HashSet<ForgeDirection>();
    EntityClientPlayerMP player = Minecraft.getMinecraft().thePlayer;
View Full Code Here

Examples of net.minecraft.client.renderer.Tessellator.addTranslation()

    // External connection terminations
    for (ForgeDirection dir : externals) {
      renderExternalConnection(dir);
    }

    tessellator.addTranslation(-(float) x, -(float) y, -(float) z);

  }

  private void renderExternalConnection(ForgeDirection dir) {
    IIcon tex = EnderIO.blockConduitBundle.getConnectorIcon();
View Full Code Here

Examples of org.allspice.parser.parsetable.DefaultTranslationMapper.addTranslation()

   * @throws StrandedSymbol
   * @throws InvalidStartRule
   */
  private static DefaultTranslationMapper createMapper() throws StateConflict, InvalidStartRule, StrandedSymbol {
    DefaultTranslationMapper mapper = new DefaultTranslationMapper() ;
    mapper.addTranslation(new Rule("E'","E"),new OneTrans()) ;
    mapper.addTranslation(new Rule("E","E","+","F"),new OpTrans()) ;
    mapper.addTranslation(new Rule("E","F"),new OneTrans()) ;
    mapper.addTranslation(new Rule("F","F","*","T"),new OpTrans()) ;
    mapper.addTranslation(new Rule("F","T"),new OneTrans()) ;
    mapper.addTranslation(new Rule("T","id"),new OneTrans()) ;
View Full Code Here

Examples of org.allspice.parser.parsetable.DefaultTranslationMapper.addTranslation()

   * @throws InvalidStartRule
   */
  private static DefaultTranslationMapper createMapper() throws StateConflict, InvalidStartRule, StrandedSymbol {
    DefaultTranslationMapper mapper = new DefaultTranslationMapper() ;
    mapper.addTranslation(new Rule("E'","E"),new OneTrans()) ;
    mapper.addTranslation(new Rule("E","E","+","F"),new OpTrans()) ;
    mapper.addTranslation(new Rule("E","F"),new OneTrans()) ;
    mapper.addTranslation(new Rule("F","F","*","T"),new OpTrans()) ;
    mapper.addTranslation(new Rule("F","T"),new OneTrans()) ;
    mapper.addTranslation(new Rule("T","id"),new OneTrans()) ;
    mapper.addTranslation(new Rule("T","(","E",")"),new Paren()) ;
View Full Code Here

Examples of org.allspice.parser.parsetable.DefaultTranslationMapper.addTranslation()

   */
  private static DefaultTranslationMapper createMapper() throws StateConflict, InvalidStartRule, StrandedSymbol {
    DefaultTranslationMapper mapper = new DefaultTranslationMapper() ;
    mapper.addTranslation(new Rule("E'","E"),new OneTrans()) ;
    mapper.addTranslation(new Rule("E","E","+","F"),new OpTrans()) ;
    mapper.addTranslation(new Rule("E","F"),new OneTrans()) ;
    mapper.addTranslation(new Rule("F","F","*","T"),new OpTrans()) ;
    mapper.addTranslation(new Rule("F","T"),new OneTrans()) ;
    mapper.addTranslation(new Rule("T","id"),new OneTrans()) ;
    mapper.addTranslation(new Rule("T","(","E",")"),new Paren()) ;
    return mapper;
View Full Code Here

Examples of org.allspice.parser.parsetable.DefaultTranslationMapper.addTranslation()

  private static DefaultTranslationMapper createMapper() throws StateConflict, InvalidStartRule, StrandedSymbol {
    DefaultTranslationMapper mapper = new DefaultTranslationMapper() ;
    mapper.addTranslation(new Rule("E'","E"),new OneTrans()) ;
    mapper.addTranslation(new Rule("E","E","+","F"),new OpTrans()) ;
    mapper.addTranslation(new Rule("E","F"),new OneTrans()) ;
    mapper.addTranslation(new Rule("F","F","*","T"),new OpTrans()) ;
    mapper.addTranslation(new Rule("F","T"),new OneTrans()) ;
    mapper.addTranslation(new Rule("T","id"),new OneTrans()) ;
    mapper.addTranslation(new Rule("T","(","E",")"),new Paren()) ;
    return mapper;
  }
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.