Package logisticspipes.pipes.basic

Examples of logisticspipes.pipes.basic.LogisticsTileGenericPipe


    super(id);
  }

  @Override
  public void processPacket(EntityPlayer player) {
    LogisticsTileGenericPipe tile = this.getPipe(player.getEntityWorld());
    if(tile != null) {
      ((CoreRoutedPipe) tile.pipe).debug.debugThisPipe = !((CoreRoutedPipe) tile.pipe).debug.debugThisPipe;
      if(((CoreRoutedPipe) tile.pipe).debug.debugThisPipe) {
        player.addChatComponentMessage(new ChatComponentText("Debug enabled on Server"));
      } else {
View Full Code Here


    super(id);
  }
 
  @Override
  public Object getClientGui(EntityPlayer player) {
    LogisticsTileGenericPipe pipe = this.getPipe(player.getEntityWorld());
    if(pipe == null || !(pipe.pipe instanceof CoreRoutedPipe)) return null;
    return new ItemAmountSignCreationGui(player, (CoreRoutedPipe) pipe.pipe, dir);
  }
View Full Code Here

    return new ItemAmountSignCreationGui(player, (CoreRoutedPipe) pipe.pipe, dir);
  }

  @Override
  public DummyContainer getContainer(EntityPlayer player) {
    LogisticsTileGenericPipe pipe = this.getPipe(player.getEntityWorld());
    if(pipe == null || !(pipe.pipe instanceof CoreRoutedPipe)) return null;
    ItemAmountPipeSign sign = ((ItemAmountPipeSign)((CoreRoutedPipe)pipe.pipe).getPipeSign(dir));
    DummyContainer dummy = new DummyContainer(player.inventory, sign.itemTypeInv);
    dummy.addDummySlot(0, 0, 0);
    dummy.addNormalSlotsForPlayerInventory(0, 0);
View Full Code Here

    super(id);
  }
 
  @Override
  public void processPacket(EntityPlayer player) {
    LogisticsTileGenericPipe tile = this.getPipe(player.getEntityWorld());
    if(tile == null) return;
    try {
      tile.renderState.readData(new LPDataInputStream(bytesRenderState));
      tile.coreState.readData(new LPDataInputStream(bytesCoreState));
      tile.bcCoreState.readData(new LPDataInputStream(bytesBCCoreState));
      tile.afterStateUpdated();
      tile.pipe.readData(new LPDataInputStream(bytesPipe));
    } catch(IOException e) {
      throw new RuntimeException(e);
    }
  }
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;
    return (CoreRoutedPipe) pipe.pipe;
  }
View Full Code Here

    return new Pair<ItemIdentifierStack, Pair<Integer, Integer>>(data.readItemIdentifierStack(), null);
  }

  @Override
  public void processPacket(EntityPlayer player) {
    LogisticsTileGenericPipe pipe = this.getPipe(player.getEntityWorld());
    if(pipe == null || pipe.pipe == null || pipe.pipe.transport == null) return;
    pipe.pipe.transport._itemBuffer.clear();
    pipe.pipe.transport._itemBuffer.addAll(getList());
  }
View Full Code Here

    super(id);
  }

  @Override
  public void processPacket(EntityPlayer player) {
    LogisticsTileGenericPipe tile = this.getPipe(player.getEntityWorld());
    if(tile != null) {
      ((CoreRoutedPipe) tile.pipe).debug.openForPlayer(player);
      player.addChatComponentMessage(new ChatComponentText("Debug log enabled."));
    }
  }
View Full Code Here

    super(id);
  }
 
  @Override
  public Object getClientGui(EntityPlayer player) {
    LogisticsTileGenericPipe pipe = this.getPipe(player.getEntityWorld());
    if(pipe == null || !((pipe.pipe instanceof CoreRoutedPipe))) return null;
    return new GuiUpgradeManager(player, (CoreRoutedPipe) pipe.pipe);
  }
View Full Code Here

    return new GuiUpgradeManager(player, (CoreRoutedPipe) pipe.pipe);
  }

  @Override
  public DummyContainer getContainer(EntityPlayer player) {
    LogisticsTileGenericPipe pipe = this.getPipe(player.getEntityWorld());
    if(pipe == null || !((pipe.pipe instanceof CoreRoutedPipe))) return null;
    return ((CoreRoutedPipe)pipe.pipe).getUpgradeManager().getDummyContainer(player);
  }
View Full Code Here

    super(id);
  }

  @Override
  public Object getClientGui(EntityPlayer player) {
    LogisticsTileGenericPipe pipe = this.getPipe(player.getEntityWorld());
    if(pipe == null || pipe.pipe == null || !(pipe.pipe instanceof PipeLogisticsChassi)) return null;
    return new GuiChassiPipe(player, (PipeLogisticsChassi)pipe.pipe);
  }
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.