Package logisticspipes.pipes.basic

Examples of logisticspipes.pipes.basic.LogisticsTileGenericPipe


    return new ChestContent(getId());
  }
 
  @Override
  public void processPacket(EntityPlayer player) {
    final LogisticsTileGenericPipe tile = this.getPipe(player.worldObj);
    if(tile != null && tile.pipe instanceof IChestContentReceiver) {
      ((IChestContentReceiver) tile.pipe).setReceivedChestContent(getIdentList());
    }
   
  }
View Full Code Here


    return new HUDStopWatchingPacket(getId());
  }

  @Override
  public void processPacket(EntityPlayer player) {
    final LogisticsTileGenericPipe pipe = this.getPipe(player.worldObj);
    if(pipe == null) {
      return;
    }
    if(pipe.pipe instanceof IWatchingHandler) {
      IWatchingHandler handler = (IWatchingHandler) pipe.pipe;
View Full Code Here

    return new HUDStartWatchingPacket(getId());
  }

  @Override
  public void processPacket(EntityPlayer player) {
    final LogisticsTileGenericPipe pipe = this.getPipe(player.worldObj);
    if(pipe == null) {
      return;
    }
    if(pipe.pipe instanceof IWatchingHandler) {
      IWatchingHandler handler = (IWatchingHandler) pipe.pipe;
View Full Code Here

    renderer.setRenderBounds(0, 0, 0, 0, 0, 0);
    renderer.renderStandardBlock(Blocks.stone, x, y, z);
    renderer.setRenderBoundsFromBlock(block);

    if (tile instanceof LogisticsTileGenericPipe) {
      LogisticsTileGenericPipe pipeTile = (LogisticsTileGenericPipe) tile;
      renderPipe(renderer, world, (LogisticsBlockGenericPipe) block, pipeTile, x, y, z);
    }
    return true;
  }
View Full Code Here

    }
    List<? extends TileEntity> connections = SimpleServiceLocator.enderIOProxy.getConnectedHyperCubes(tile);
    List<TileEntity> list = new ArrayList<TileEntity>();
    for(TileEntity connected:connections) {
      if(!SimpleServiceLocator.enderIOProxy.isSendAndReceive(connected)) continue;
      LogisticsTileGenericPipe pipe = null;
      for (ForgeDirection direction : ForgeDirection.VALID_DIRECTIONS) {
        LPPosition p = new LPPosition(connected);
        p.moveForward(direction);
        TileEntity canidate = p.getTileEntity(tile.getWorldObj());
        if(canidate instanceof LogisticsTileGenericPipe && MainProxy.checkPipesConnections(connected, canidate, direction)) {
View Full Code Here

    }
    List<? extends TileEntity> connections = SimpleServiceLocator.thermalExpansionProxy.getConnectedTesseracts(tile);
    connections.remove(tile);
    List<TileEntity> list = new ArrayList<TileEntity>();
    for(TileEntity connected:connections) {
      LogisticsTileGenericPipe pipe = null;
      for (ForgeDirection direction : ForgeDirection.VALID_DIRECTIONS) {
        LPPosition p = new LPPosition(connected);
        p.moveForward(direction);
        TileEntity canidate = p.getTileEntity(tile.getWorldObj());
        if(canidate instanceof LogisticsTileGenericPipe && MainProxy.checkPipesConnections(connected, canidate, direction)) {
View Full Code Here

 
  @SuppressWarnings("unchecked")
  @Override
  public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
    if(!(tileentity instanceof LogisticsTileGenericPipe)) return;
    LogisticsTileGenericPipe pipe = ((LogisticsTileGenericPipe)tileentity);
    if(pipe.pipe == null) return;
    SimpleServiceLocator.buildCraftProxy.renderGatesWires(pipe, x, y, z);
    if(!pipe.isOpaque()) {
      if(pipe.pipe.transport instanceof PipeFluidTransportLogistics) {
        renderFluids(pipe.pipe, x, y, z);
      }
      if(pipe.pipe.transport instanceof PipeTransportLogistics) {
        renderSolids(pipe.pipe, x, y, z, f);
View Full Code Here

  @Override
  public boolean isWireConnectedTo(TileEntity tile, Object oColor) {
    PipeWire color = (PipeWire) oColor;
    if(tile instanceof LogisticsTileGenericPipe) {
      LogisticsTileGenericPipe tilePipe = (LogisticsTileGenericPipe) tile;
      if (!LogisticsBlockGenericPipe.isFullyDefined(tilePipe.pipe)) {
        return false;
      }

      if (!tilePipe.pipe.bcPipePart.getWireSet()[color.ordinal()]) {
View Full Code Here

              ((PipeClassReceiveSignal)tilePipe.pipe).receiveSignal(signalStrength[wire.ordinal()] - 1, wire);
            }
          }
        }
        if (tile instanceof LogisticsTileGenericPipe) {
          LogisticsTileGenericPipe tilePipe = (LogisticsTileGenericPipe) tile;

          if (LogisticsBlockGenericPipe.isFullyDefined(tilePipe.pipe) && tilePipe.pipe.bcPipePart.getWireSet()[wire.ordinal()]) {
            if (isWireConnectedTo(tile, wire)) {
              tilePipe.pipe.bcPipePart.receiveSignal(signalStrength[wire.ordinal()] - 1, wire);
            }
View Full Code Here

    for (ForgeDirection o : ForgeDirection.VALID_DIRECTIONS) {
      TileEntity tile = container.getTile(o);

      if (tile instanceof LogisticsTileGenericPipe) {
        LogisticsTileGenericPipe tilePipe = (LogisticsTileGenericPipe) tile;

        if (LogisticsBlockGenericPipe.isFullyDefined(tilePipe.pipe)) {
          if (isWireConnectedTo(tile, color)) {
            foundBiggerSignal |= receiveSignal(tilePipe.pipe.bcPipePart.getSignalStrength()[color.ordinal()] - 1, color);
          }
        }
      }
      if (tile instanceof TileGenericPipe) {
        TileGenericPipe tilePipe = (TileGenericPipe) tile;

        if (BlockGenericPipe.isFullyDefined(tilePipe.pipe)) {
          if (isWireConnectedTo(tile, color)) {
            foundBiggerSignal |= receiveSignal(tilePipe.pipe.signalStrength[color.ordinal()] - 1, color);
          }
        }
      }
    }

    if (!foundBiggerSignal && signalStrength[color.ordinal()] != 0) {
      signalStrength[color.ordinal()] = 0;
      // worldObj.markBlockNeedsUpdate(container.xCoord, container.yCoord, zCoord);
      container.scheduleRenderUpdate();

      for (ForgeDirection o : ForgeDirection.VALID_DIRECTIONS) {
        TileEntity tile = container.getTile(o);
        if (tile instanceof LogisticsTileGenericPipe) {
          LogisticsTileGenericPipe tilePipe = (LogisticsTileGenericPipe) tile;

          if (LogisticsBlockGenericPipe.isFullyDefined(tilePipe.pipe)) {
            tilePipe.pipe.internalUpdateScheduled = true;
          }
        }
View Full Code Here

TOP

Related Classes of logisticspipes.pipes.basic.LogisticsTileGenericPipe

Copyright © 2018 www.massapicom. 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.