Package logisticspipes.pipes

Examples of logisticspipes.pipes.PipeLogisticsChassi


          List<WeakReference<ModuleQuickSort>> list = new ArrayList<WeakReference<ModuleQuickSort>>();
          for(AdjacentTile adj:new WorldUtil(tile).getAdjacentTileEntities()) {
            if(adj.tile instanceof LogisticsTileGenericPipe) {
              if(((LogisticsTileGenericPipe)adj.tile).pipe instanceof PipeLogisticsChassi) {
                if(((PipeLogisticsChassi)((LogisticsTileGenericPipe)adj.tile).pipe).getPointedOrientation() == adj.orientation.getOpposite()) {
                  PipeLogisticsChassi chassi = (PipeLogisticsChassi)((LogisticsTileGenericPipe)adj.tile).pipe;
                  for(int i=0;i<chassi.getChassiSize();i++) {
                    if(chassi.getLogisticsModule().getSubModule(i) instanceof ModuleQuickSort) {
                      list.add(new WeakReference<ModuleQuickSort>((ModuleQuickSort) chassi.getLogisticsModule().getSubModule(i)));
                    }
                  }
                }
              }
            }
View Full Code Here


   
    if( !(pipe.pipe instanceof PipeLogisticsChassi)) {
      return;
    }
   
    final PipeLogisticsChassi cassiPipe = (PipeLogisticsChassi) pipe.pipe;
   
    if( !(cassiPipe.getLogisticsModule().getSubModule(getButtonID()) instanceof LogisticsGuiModule))
      return;
   
    ((LogisticsGuiModule) cassiPipe.getLogisticsModule().getSubModule(getButtonID())).getPipeGuiProviderForModule().setPosX(getPosX()).setPosY(getPosY()).setPosZ(getPosZ()).open(player);
  }
View Full Code Here

  @Override
  public DummyContainer getContainer(EntityPlayer player) {
    LogisticsTileGenericPipe pipe = this.getPipe(player.getEntityWorld());
    if(pipe == null || pipe.pipe == null || !(pipe.pipe instanceof PipeLogisticsChassi)) return null;
    PipeLogisticsChassi _chassiPipe = (PipeLogisticsChassi)pipe.pipe;
    IInventory _moduleInventory = _chassiPipe.getModuleInventory();
    DummyContainer dummy = new DummyContainer(player.inventory, _moduleInventory);
    if (_chassiPipe.getChassiSize() < 5){
      dummy.addNormalSlotsForPlayerInventory(18, 97);
    } else {
      dummy.addNormalSlotsForPlayerInventory(18, 174);
    }
    if (_chassiPipe.getChassiSize() > 0) dummy.addModuleSlot(0, _moduleInventory, 19, 9, _chassiPipe);
    if (_chassiPipe.getChassiSize() > 1) dummy.addModuleSlot(1, _moduleInventory, 19, 29, _chassiPipe);
    if (_chassiPipe.getChassiSize() > 2) dummy.addModuleSlot(2, _moduleInventory, 19, 49, _chassiPipe);
    if (_chassiPipe.getChassiSize() > 3) dummy.addModuleSlot(3, _moduleInventory, 19, 69, _chassiPipe);
    if (_chassiPipe.getChassiSize() > 4) {
      dummy.addModuleSlot(4, _moduleInventory, 19, 89, _chassiPipe);
      dummy.addModuleSlot(5, _moduleInventory, 19, 109, _chassiPipe);
      dummy.addModuleSlot(6, _moduleInventory, 19, 129, _chassiPipe);
      dummy.addModuleSlot(7, _moduleInventory, 19, 149, _chassiPipe);
    }
View Full Code Here

    final LogisticsTileGenericPipe pipe = this.getPipe(player.worldObj);
    if(pipe == null) {
      return;
    }
    if(pipe.pipe instanceof PipeLogisticsChassi) {
      PipeLogisticsChassi chassie = (PipeLogisticsChassi) pipe.pipe;
      chassie.handleModuleItemIdentifierList(getIdentList());
    }
  }
View Full Code Here

TOP

Related Classes of logisticspipes.pipes.PipeLogisticsChassi

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.