Package logisticspipes.pipes.basic

Examples of logisticspipes.pipes.basic.LogisticsTileGenericPipe


    orders = data.readLinkedLogisticsOrderList();
  }

  @Override
  public void processPacket(EntityPlayer player) {
    LogisticsTileGenericPipe tile = this.getPipe(player.worldObj);
    if(tile.pipe instanceof IRequestWatcher) {
      ((IRequestWatcher)tile.pipe).handleClientSideListInfo(getInteger(), getStack(), getOrders());
    }
  }
View Full Code Here


    return new SubmitFluidRequestPacket(getId());
  }

  @Override
  public void processPacket(EntityPlayer player) {
    final LogisticsTileGenericPipe pipe = MainProxy.proxy.getPipeInDimensionAt(getDimension(), getPosX(), getPosY(), getPosZ(), player);
    if (pipe == null) {
      return;
    }
    if (!(pipe.pipe instanceof CoreRoutedPipe)) {
      return;
View Full Code Here

    return new DiscContent(getId());
  }

  @Override
  public void processPacket(EntityPlayer player) {
    final LogisticsTileGenericPipe tile = this.getPipe(player.worldObj);
    if(tile == null) {
      return;
    }
    if(tile.pipe instanceof PipeItemsRequestLogisticsMk2) {
      if(MainProxy.isServer(tile.getWorld())) {
        if(((PipeItemsRequestLogisticsMk2)tile.pipe).getDisk() != null && ((PipeItemsRequestLogisticsMk2)tile.pipe).getDisk().getItem().equals(LogisticsPipes.LogisticsItemDisk)) {
          if(getStack() != null && getStack().getItem().equals(LogisticsPipes.LogisticsItemDisk)) {
            ((PipeItemsRequestLogisticsMk2)tile.pipe).getDisk().setTagCompound(getStack().getTagCompound());
          }
        }
      } else {
        ((PipeItemsRequestLogisticsMk2)tile.pipe).setDisk(getStack());
      }
    }
    if(tile.pipe instanceof PipeBlockRequestTable) {
      if(MainProxy.isServer(tile.getWorld())) {
        if(((PipeBlockRequestTable)tile.pipe).diskInv.getStackInSlot(0) != null && ((PipeBlockRequestTable)tile.pipe).diskInv.getStackInSlot(0).getItem().equals(LogisticsPipes.LogisticsItemDisk)) {
          if(getStack() != null && getStack().getItem().equals(LogisticsPipes.LogisticsItemDisk)) {
            ((PipeBlockRequestTable)tile.pipe).diskInv.getStackInSlot(0).setTagCompound(getStack().getTagCompound());
          }
        }
View Full Code Here

    return new RequestSubmitListPacket(getId());
  }

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

  }

  @Override
  public void processPacket(EntityPlayer player) {
    int dimension = getInteger();
    final LogisticsTileGenericPipe pipe = MainProxy.proxy.getPipeInDimensionAt(dimension, getPosX(), getPosY(), getPosZ(), player);
    if (pipe == null) {
      return;
    }
    if (!(pipe.pipe instanceof CoreRoutedPipe)) {
      return;
View Full Code Here

    return new DiskSetNamePacket(getId());
  }

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

    super(id);
  }

  @Override
  public void processPacket(EntityPlayer player) {
    LogisticsTileGenericPipe tile = this.getPipe(player.worldObj);
    if(tile != null && tile.pipe instanceof IRequestWatcher) {
      ((IRequestWatcher)tile.pipe).handleClientSideRemove(getInteger());
    }
  }
View Full Code Here

  }

  @Override
  public void processPacket(EntityPlayer player) {
    int dimension = (getInteger() - (getInteger() % 10)) / 10;
    final LogisticsTileGenericPipe pipe = MainProxy.proxy.getPipeInDimensionAt(dimension, getPosX(), getPosY(), getPosZ(), player);
    if(pipe == null) {
      return;
    }
    if( !(pipe.pipe instanceof CoreRoutedPipe)) {
      return;
View Full Code Here

    return new DiskRequestConectPacket(getId());
  }

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

    return new OrdererManagerContent(getId());
  }

  @Override
  public void processPacket(EntityPlayer player) {
    final LogisticsTileGenericPipe tile = this.getPipe(player.worldObj);
    if(tile == null) {
      return;
    }
    if(tile.pipe instanceof IOrderManagerContentReceiver) {
      ((IOrderManagerContentReceiver)tile.pipe).setOrderManagerContent(getIdentList());
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.