Examples of BlockCoord


Examples of codechicken.lib.vec.BlockCoord

    {
        MovingObjectPosition hit = RayTracer.reTrace(world, player);
        if(hit == null)
            return false;
       
        BlockCoord pos = new BlockCoord(hit.blockX, hit.blockY, hit.blockZ).offset(hit.sideHit);
        ItemStack held = player.getHeldItem();
        McBlockPart part = null;
        if(held == null)
            return false;
View Full Code Here

Examples of cofh.repack.codechicken.lib.vec.BlockCoord

      int[] ia = new int[3];
      ia[side >> 1] = c.getSide(side);
      ia[sideU >> 1] = c.getSide(sideU ^ 1);
      ia[sideV >> 1] = c.getSide(sideV ^ 1);
      BlockCoord b = BlockCoord.fromAxes(ia);
      BlockCoord bU = BlockCoord.sideOffsets[sideU];
      BlockCoord bV = BlockCoord.sideOffsets[sideV];
      for (int u = 0; u < image.width(); u++) {
        for (int v = 0; v < image.height(); v++) {
          image.data[u][v] = mat.matrix[b.x + bU.x * u + bV.x * v][b.y + bU.y * u + bV.y * v][b.z + bU.z * u + bV.z * v];
        }
      }
 
View Full Code Here

Examples of crazypants.util.BlockCoord

      if(!block.shouldSideBeRendered(blockAccess, x + face.offsetX, y + face.offsetY, z + face.offsetZ, face.ordinal())) {
        return;
      }
    }

    BlockCoord bc = new BlockCoord(x, y, z);

    List<ForgeDirection> edges;
    if(forceAllEdges) {
      edges = RenderUtil.getEdgesForFace(face);
    } else {
View Full Code Here

Examples of crazypants.util.BlockCoord

      return Collections.emptyList();
    }
    if(!block.shouldSideBeRendered(blockAccess, x + face.offsetX, y + face.offsetY, z + face.offsetZ, face.ordinal())) {
      return Collections.emptyList();
    }
    BlockCoord bc = new BlockCoord(x, y, z);

    List<EdgeNeighbour> edges = new ArrayList<EdgeNeighbour>(4);
    for (ForgeDirection dir : getEdgesForFace(face)) {
      edges.add(new EdgeNeighbour(bc, dir));
    }
View Full Code Here

Examples of crazypants.util.BlockCoord

    authorisedUsers.clear();
  }

  @Override
  public BlockCoord getLocation() {
    return new BlockCoord(this);
  }
View Full Code Here

Examples of crazypants.util.BlockCoord

      return;
    }

    double sf = TravelController.instance.getScaleForCandidate(loc);

    BlockCoord bc = new BlockCoord(tileentity);
    TravelController.instance.addCandidate(bc);

    Minecraft.getMinecraft().entityRenderer.disableLightmap(0);

    RenderUtil.bindBlockTexture();
View Full Code Here

Examples of crazypants.util.BlockCoord

      }

      String toRender = ta.getLabel();
      if(toRender != null && toRender.trim().length() > 0) {
        Vector4f bgCol = RenderUtil.DEFAULT_TEXT_BG_COL;
        if(TravelController.instance.isBlockSelected(new BlockCoord(tileentity))) {
          bgCol = new Vector4f(selectedColor.x, selectedColor.y, selectedColor.z, selectedColor.w);
        }
       
        {
          GL11.glPushMatrix();
View Full Code Here

Examples of crazypants.util.BlockCoord

  }

  @Override
  protected boolean doPush(ForgeDirection dir) {
    boolean res = super.doPush(dir);
    BlockCoord loc = getLocation().getLocation(dir);
    IFluidHandler target = FluidUtil.getFluidHandler(worldObj, loc);
    if(target != null) {
      FluidStack canDrain = drain(dir, IO_MB_TICK, false);
      if(canDrain != null && canDrain.amount > 0) {
        int drained = target.fill(dir.getOpposite(), canDrain, true);
View Full Code Here

Examples of crazypants.util.BlockCoord

    publicCB.setSelected(b.id == ID_PUBLIC);

    AccessMode curMode = b.id == ID_PRIVATE ? AccessMode.PRIVATE : b.id == ID_PROTECTED ? AccessMode.PROTECTED : AccessMode.PUBLIC;
    te.setAccessMode(curMode);

    BlockCoord bc = te.getLocation();
    PacketAccessMode p = new PacketAccessMode(bc.x, bc.y, bc.z, curMode);
    PacketHandler.INSTANCE.sendToServer(p);
  }
View Full Code Here

Examples of crazypants.util.BlockCoord

    }
    if(!changed) {
      return;
    }
    te.setLabel(newTxt);
    BlockCoord bc = te.getLocation();
    PacketLabel p = new PacketLabel(bc.x, bc.y, bc.z, te.getLabel());
    PacketHandler.INSTANCE.sendToServer(p);

  }
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.