Package crazypants.render

Examples of crazypants.render.BoundingBox.translate()


    bb = BoundingBox.UNIT_CUBE.scale(1, scale, width);
    bb = bb.translate(0, -trans, 0);
    TranslatedCubeRenderer.instance.renderBoundingBox(x, y, z, block, bb, xform, null, world != null);

    bb = BoundingBox.UNIT_CUBE.scale(width, scale, 1);
    bb = bb.translate(0, -trans, 0);
    TranslatedCubeRenderer.instance.renderBoundingBox(x, y, z, block, bb, xform, null, world != null);

    float topWidth = 0.15f;
    bb = BoundingBox.UNIT_CUBE.scale(1, topWidth, 1);
    bb = bb.translate(0, 0.3f + topWidth / 2f, 0);
View Full Code Here


    bb = bb.translate(0, -trans, 0);
    TranslatedCubeRenderer.instance.renderBoundingBox(x, y, z, block, bb, xform, null, world != null);

    float topWidth = 0.15f;
    bb = BoundingBox.UNIT_CUBE.scale(1, topWidth, 1);
    bb = bb.translate(0, 0.3f + topWidth / 2f, 0);
    TranslatedCubeRenderer.instance.renderBoundingBox(x, y, z, block, bb, xform, null, world != null);

    if(world != null) {
      TileEntity te = world.getTileEntity(x, y, z);
      if(te instanceof TileFarmStation && ((TileFarmStation) te).isActive()) {
View Full Code Here

    if(world != null) {
      TileEntity te = world.getTileEntity(x, y, z);
      if(te instanceof TileFarmStation && ((TileFarmStation) te).isActive()) {
        bb = BoundingBox.UNIT_CUBE.scale(1, 0.08, .4);
        bb = bb.translate(0, 0.1f, 0);
        bb = bb.translate(x, y, z);
        Tessellator.instance.setColorOpaque_F(1, 1, 1);
        CubeRenderer.render(bb, Blocks.portal.getBlockTextureFromSide(1));

        bb = BoundingBox.UNIT_CUBE.scale(.4, 0.08, 1);
View Full Code Here

    if(world != null) {
      TileEntity te = world.getTileEntity(x, y, z);
      if(te instanceof TileFarmStation && ((TileFarmStation) te).isActive()) {
        bb = BoundingBox.UNIT_CUBE.scale(1, 0.08, .4);
        bb = bb.translate(0, 0.1f, 0);
        bb = bb.translate(x, y, z);
        Tessellator.instance.setColorOpaque_F(1, 1, 1);
        CubeRenderer.render(bb, Blocks.portal.getBlockTextureFromSide(1));

        bb = BoundingBox.UNIT_CUBE.scale(.4, 0.08, 1);
        bb = bb.translate(0, 0.1f, 0);
View Full Code Here

        bb = bb.translate(x, y, z);
        Tessellator.instance.setColorOpaque_F(1, 1, 1);
        CubeRenderer.render(bb, Blocks.portal.getBlockTextureFromSide(1));

        bb = BoundingBox.UNIT_CUBE.scale(.4, 0.08, 1);
        bb = bb.translate(0, 0.1f, 0);
        bb = bb.translate(x, y, z);
        Tessellator.instance.setColorOpaque_F(1, 1, 1);
        CubeRenderer.render(bb, Blocks.portal.getBlockTextureFromSide(1));
      }
    }
View Full Code Here

        Tessellator.instance.setColorOpaque_F(1, 1, 1);
        CubeRenderer.render(bb, Blocks.portal.getBlockTextureFromSide(1));

        bb = BoundingBox.UNIT_CUBE.scale(.4, 0.08, 1);
        bb = bb.translate(0, 0.1f, 0);
        bb = bb.translate(x, y, z);
        Tessellator.instance.setColorOpaque_F(1, 1, 1);
        CubeRenderer.render(bb, Blocks.portal.getBlockTextureFromSide(1));
      }
    }
View Full Code Here

  public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
    block.setBlockBoundsBasedOnState(world, x, y, z);
    BoundingBox bb = new BoundingBox(block.getBlockBoundsMinX(), block.getBlockBoundsMinY(), block.getBlockBoundsMinZ(), block.getBlockBoundsMaxX(),
        block.getBlockBoundsMaxY(), block.getBlockBoundsMaxZ());

    bb = bb.translate(x, y, z);
    RenderUtil.setTesselatorBrightness(world, x, y, z);
   
    IIcon[] textures = RenderUtil.getBlockTextures(world, x, y, z);
    CubeRenderer.render(bb, textures, null, null);
View Full Code Here

      }
      BoundingBox bounds = new BoundingBox(multiblock[0]);
      for (int i = 1; i < multiblock.length; i++) {
        bounds = bounds.expandBy(new BoundingBox(multiblock[i]));
      }
      liquidRenderBounds = bounds.translate(-multiblock[0].x, -multiblock[0].y, -multiblock[0].z);
    }
    return liquidRenderBounds;
  }

  protected float doGetFilledRatio() {
View Full Code Here

    setIcons(soulariumIcon, ForgeDirection.NORTH);
    CubeRenderer.render(bb, icons, true);

    float slabWidth = 0.15f;
    bb = BoundingBox.UNIT_CUBE.scale(1, slabWidth, 1);
    bb = bb.translate(0, 0.5f - (slabWidth / 2), 0);
    setIcons(EnderIO.blockSoulFuser.getIcon(ForgeDirection.UP.ordinal(), 0), ForgeDirection.UP);
    CubeRenderer.render(bb, icons, true);

    bb = BoundingBox.UNIT_CUBE.scale(1, slabWidth, 1);
    bb = bb.translate(0, -0.5f + (slabWidth / 2), 0);
View Full Code Here

    bb = bb.translate(0, 0.5f - (slabWidth / 2), 0);
    setIcons(EnderIO.blockSoulFuser.getIcon(ForgeDirection.UP.ordinal(), 0), ForgeDirection.UP);
    CubeRenderer.render(bb, icons, true);

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

    CubeRenderer.render(bb, icons, true);

    IIcon endermanIcon;
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.