Examples of addDummySlot()


Examples of logisticspipes.utils.gui.DummyContainer.addDummySlot()

  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);
    return dummy;
  }

  @Override
View Full Code Here

Examples of logisticspipes.utils.gui.DummyContainer.addDummySlot()

    if(tile == null) return null;
    DummyContainer dummy = new DummyContainer(player.inventory, tile.matrix);

    for(int X=0;X<3;X++) {
      for(int Y=0;Y<3;Y++) {
        dummy.addDummySlot(Y*3 + X, 35 + X*18, 10 + Y*18);
      }
    }
    dummy.addUnmodifiableSlot(0, tile.resultInv, 125, 28);
    for(int Y=0;Y<2;Y++) {
      for(int X=0;X<9;X++) {
View Full Code Here

Examples of logisticspipes.utils.gui.DummyContainer.addDummySlot()

    DummyContainer dummy = new DummyContainer(player.inventory, module.getFilterInventory());
    dummy.addNormalSlotsForPlayerInventory(8, 60);

    //Pipe slots
      for(int pipeSlot = 0; pipeSlot < 9; pipeSlot++){
        dummy.addDummySlot(pipeSlot, 8 + pipeSlot * 18, 18);
      }
     
      return dummy;
  }

View Full Code Here

Examples of logisticspipes.utils.gui.DummyModuleContainer.addDummySlot()

    ((DummyModuleContainer)dummy).setInventory(((ModuleItemSink)((DummyModuleContainer)dummy).getModule()).getFilterInventory());
    dummy.addNormalSlotsForPlayerInventory(8, 60);
   
    //Pipe slots
      for(int pipeSlot = 0; pipeSlot < 9; pipeSlot++){
        dummy.addDummySlot(pipeSlot, 8 + pipeSlot * 18, 18);
      }
      return dummy;
  }

  @Override
View Full Code Here

Examples of logisticspipes.utils.gui.DummyModuleContainer.addDummySlot()

    dummy.setInventory(((LogisticsSimpleFilterModule) dummy.getModule()).getFilterInventory());
    dummy.addNormalSlotsForPlayerInventory(8, 60);

    //Pipe slots
    for (int pipeSlot = 0; pipeSlot < 9; pipeSlot++) {
      dummy.addDummySlot(pipeSlot, 8 + pipeSlot * 18, 18);
    }

    return dummy;
  }

View Full Code Here

Examples of logisticspipes.utils.gui.DummyModuleContainer.addDummySlot()

    ((DummyModuleContainer)dummy).setInventory(((ModuleActiveSupplier)((DummyModuleContainer)dummy).getModule()).getDummyInventory());
    dummy.addNormalSlotsForPlayerInventory(8, 60);
   
    //Pipe slots
      for(int pipeSlot = 0; pipeSlot < 9; pipeSlot++){
        dummy.addDummySlot(pipeSlot, 8 + pipeSlot * 18, 18);
      }
      return dummy;
  }

  @Override
View Full Code Here

Examples of logisticspipes.utils.gui.DummyModuleContainer.addDummySlot()

    if(!(dummy.getModule() instanceof ModuleCrafter)) return null;
    dummy.setInventory(((ModuleCrafter)dummy.getModule()).getDummyInventory());
    dummy.addNormalSlotsForPlayerInventory(18, 97);
    //Input slots
        for(int l = 0; l < 9; l++) {
          dummy.addDummySlot(l, 18 + l * 18, 18);
        }
       
        //Output slot
        dummy.addDummySlot(9, 90, 64);
    return dummy;
View Full Code Here

Examples of logisticspipes.utils.gui.DummyModuleContainer.addDummySlot()

        for(int l = 0; l < 9; l++) {
          dummy.addDummySlot(l, 18 + l * 18, 18);
        }
       
        //Output slot
        dummy.addDummySlot(9, 90, 64);
    return dummy;
  }

  @Override
  public GuiProvider template() {
View Full Code Here

Examples of logisticspipes.utils.gui.DummyModuleContainer.addDummySlot()

    int xOffset = 72;
    int yOffset = 18;
   
    for (int row = 0; row < 3; row++){
      for (int column = 0; column < 3; column++){
        dummy.addDummySlot(column + row * 3, xOffset + column * 18, yOffset + row * 18);         
      }
    }
    return dummy;
  }

View Full Code Here

Examples of logisticspipes.utils.gui.DummyModuleContainer.addDummySlot()

    dummy.setInventory(((ModuleAdvancedExtractor)dummy.getModule()).getFilterInventory());
    dummy.addNormalSlotsForPlayerInventory(8, 60);

    //Pipe slots
      for(int pipeSlot = 0; pipeSlot < 9; pipeSlot++){
        dummy.addDummySlot(pipeSlot, 8 + pipeSlot * 18, 18);
      }
      return dummy;
  }

  @Override
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.