Package net.minecraft.client.renderer

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


    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

  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

    // 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

    else {
      quads = quadSet1;
    }

    Tessellator tessellator = Tessellator.instance;
    tessellator.addTranslation(x, y, z);
   
    for(int face = drawOuterRectangle ? 0 : 1; face < quads.length; face++) {
      for(int vertex = 0; vertex < quads[face].length; vertex++) {
        int idx = quads[face][vertex];
        tessellator.addVertexWithUV(xCoords[idx], yCoords[idx], zCoords[idx], u[vertex], v[vertex]);
View Full Code Here

        int idx = quads[face][vertex];
        tessellator.addVertexWithUV(xCoords[idx], yCoords[idx], zCoords[idx], u[vertex], v[vertex]);
      }
    }
   
    tessellator.addTranslation(-x, -y, -z);
    renderer.setRenderBounds(0D, 0D, 0D, 1D, 1D, 1D);
  }
 
  private static final int[][] quadSet1 = {
      {4, 5, 6, 7}, // Outer rectangular face of the rotor
View Full Code Here

            double d8 = grapple.prevPosY + (grapple.posY - grapple.prevPosY) * partialTicks + 0.25D;
            double d10 = grapple.prevPosZ + (grapple.posZ - grapple.prevPosZ) * partialTicks;
            double d11 = (float) (d3 - d14);
            double d12 = (float) (d4 - d8);
            double d13 = (float) (d5 - d10);
            tessellator.addTranslation(0, -0.2F, 0);

            for (int i = 0; i <= b2; ++i)
            {
                float f12 = (float) i / (float) b2;
                tessellator.addVertex(x + d11 * f12, y + d12 * (f12 * f12 + f12) * 0.5D + 0.15D, z + d13 * f12);
 
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.