Package logisticspipes.pipes.basic

Examples of logisticspipes.pipes.basic.LogisticsTileGenericPipe


    super(id);
  }
 
  @Override
  public void processPacket(EntityPlayer player) {
    LogisticsTileGenericPipe pipe = this.getPipe(player.getEntityWorld());
    if(pipe == null) return;
    IPipeSign sign = ((CoreRoutedPipe)pipe.pipe).getPipeSign(ForgeDirection.getOrientation(getInteger()));
    if(sign == null) return;
    ((ItemAmountPipeSign)sign).amount = getInteger2();
    ((ItemAmountPipeSign)sign).itemTypeInv.setInventorySlotContents(0, stack);
View Full Code Here


    super(id);
  }

  @Override
  public void processPacket(EntityPlayer player) {
    LogisticsTileGenericPipe pipe = this.getPipe(player.getEntityWorld());
    if(pipe == null) return;
    ((CoreRoutedPipe)pipe.pipe).sendSignData(player);
  }
View Full Code Here

      for(ForgeDirection dir:ForgeDirection.VALID_DIRECTIONS) {
        LPPosition pos = new LPPosition(this);
        pos.moveForward(dir);
        TileEntity tile = pos.getTileEntity(getWorldObj());
        if(!(tile instanceof LogisticsTileGenericPipe)) continue;
        LogisticsTileGenericPipe tPipe = (LogisticsTileGenericPipe) tile;
        if(!(tPipe.pipe instanceof CoreRoutedPipe)) continue;
        CoreRoutedPipe pipe = (CoreRoutedPipe) tPipe.pipe;
        if(pipe.useEnergy(50)) {
          heat += 5;
          if(heat > 100) {
            heat = 100;
          }
          updateHeat();
          usedEnergy = true;
          break;
        }
      }
      if(!usedEnergy && getWorldObj().getTotalWorldTime() % 5 == 0) {
        heat--;
        if(heat < 0) {
          heat = 0;
        }
        updateHeat();
      }
    } else if(!hasWork && heat > 0) {
      heat--;
      updateHeat();
    }
    if(hasWork && heat >= 100) {
      for(ForgeDirection dir:ForgeDirection.VALID_DIRECTIONS) {
        LPPosition pos = new LPPosition(this);
        pos.moveForward(dir);
        TileEntity tile = pos.getTileEntity(getWorldObj());
        if(!(tile instanceof LogisticsTileGenericPipe)) continue;
        LogisticsTileGenericPipe tPipe = (LogisticsTileGenericPipe) tile;
        if(!(tPipe.pipe instanceof CoreRoutedPipe)) continue;
        CoreRoutedPipe pipe = (CoreRoutedPipe) tPipe.pipe;
        if(pipe.useEnergy(30)) {
          progress += 3;
        } else if(pipe.useEnergy(20)) {
View Full Code Here

    super.readData(data);
  }
 
  @Override
  public void processPacket(EntityPlayer player) {
    final LogisticsTileGenericPipe pipe = getPipe(player.worldObj);
    if(pipe == null) {
      return;
    }
   
    if( !(pipe.pipe instanceof PipeLogisticsChassi)) {
View Full Code Here

    return new InvSysConContentRequest(getId());
  }

  @Override
  public void processPacket(EntityPlayer player) {
    final LogisticsTileGenericPipe pipe = this.getPipe(player.worldObj);
    if(pipe == null) {
      return;
    }
    if(pipe.pipe instanceof PipeItemsInvSysConnector) {
      MainProxy.sendPacketToPlayer(PacketHandler.getPacket(InvSysConContent.class).setIdentSet(((PipeItemsInvSysConnector)pipe.pipe).getExpectedItems()), player);
View Full Code Here

    return new FluidSupplierAmount(getId());
  }

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

      return null;
    }
    TileEntity tile = worldObj.getTileEntity(_xCoord, _yCoord, _zCoord);
   
    if (!(tile instanceof LogisticsTileGenericPipe)) return null;
    LogisticsTileGenericPipe pipe = (LogisticsTileGenericPipe) tile;
    if (!(pipe.pipe instanceof CoreRoutedPipe)) return null;
    _myPipeCache=new WeakReference<CoreRoutedPipe>((CoreRoutedPipe) pipe.pipe);

    return (CoreRoutedPipe) pipe.pipe;
  }
View Full Code Here

    return new FluidSupplierMode(getId());
  }

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

    super(id);
  }
 
  @Override
  public void processPacket(EntityPlayer player) {
    LogisticsTileGenericPipe tile = this.getPipe(player.getEntityWorld());
    if(tile == null) return;
    ((PipeTransportLogistics)tile.pipe.transport).handleItemPositionPacket(travelId, input, output, speed, position);
  }
View Full Code Here

    super(id);
  }

  @Override
  public void processPacket(EntityPlayer player) {
    LogisticsTileGenericPipe pipe = this.getPipe(player.worldObj);
    if(pipe == null || !(pipe.pipe instanceof PipeLogisticsChassi)) return;
    ((PipeLogisticsChassi)pipe.pipe).setClientOrientation(dir);
  }
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.