Package logisticspipes.utils.gui

Examples of logisticspipes.utils.gui.DummyContainer


   
    _module = itemSink;
   
    tmpInv = new ItemIdentifierInventory(1, "Aspect Reader", 1);
   
    DummyContainer dummy = new DummyContainer(playerInventory, tmpInv);
    dummy.addDummySlot(0, 7, 7);

    dummy.addNormalSlotsForPlayerInventory(7, 90);
   
    this.inventorySlots = dummy;
    xSize = 175;
    ySize = 172;
  }
View Full Code Here


   
    _itemSink = itemSink;
   
    tmpInv = new ItemIdentifierInventory(1, "Analyse Slot", 1);
   
    DummyContainer dummy = new DummyContainer(playerInventory, tmpInv);
    dummy.addDummySlot(0, 7, 8);
   
    dummy.addNormalSlotsForPlayerInventory(7, 126);
     
      this.inventorySlots = dummy;
    xSize = 175;
    ySize = 208;
  }
View Full Code Here

 
 
  public GuiSimpleFilter(IInventory playerInventory, LogisticsSimpleFilterModule module) {
    super(null, module);
    _module = module;
    DummyContainer dummy = new DummyContainer(playerInventory, _module.getFilterInventory());
    dummy.addNormalSlotsForPlayerInventory(8, 60);

    //Pipe slots
      for(int pipeSlot = 0; pipeSlot < 9; pipeSlot++){
        dummy.addDummySlot(pipeSlot, 8 + pipeSlot * 18, 18);
      }
     
      this.inventorySlots = dummy;
    xSize = 175;
    ySize = 142;
View Full Code Here

    _itemSink = itemSink;

    tmpInv = new ItemIdentifierInventory(1, "Analyse Slot", 1);

    DummyContainer dummy = new DummyContainer(playerInventory, tmpInv);
    dummy.addDummySlot(0, 7, 8);

    dummy.addNormalSlotsForPlayerInventory(7, 126);

      this.inventorySlots = dummy;
    xSize = 175;
    ySize = 208;
  }
View Full Code Here

      ySize = 187;
    } else {
      ySize = 187 + 30;
    }
   
    DummyContainer dummy = new DummyContainer(player.inventory, dummyInventory);
    dummy.addNormalSlotsForPlayerInventory(8, ySize - 82);
   
    // Input slots
    for(int l = 0; l < 9; l++) {
      dummy.addDummySlot(l, 8 + l * 18, 18);
    }
   
    // Output slot
    if(!isAdvancedSat) {
      dummy.addDummySlot(9, 85, 55);
    } else {
      dummy.addDummySlot(9, 85, 105);
    }
   
    liquidGuiParts = new GuiButton[liquidCrafter][];
    fluidSlotIDs = new int[liquidCrafter];
   
   
    for(int i = 0; i < liquidCrafter; i++) {
      int liquidLeft = 0;
      if(isAdvancedSat) {
        liquidLeft = -40;
      } else {
        liquidLeft = -(liquidCrafter * 40+ (i * 40);
      }
      fluidSlotIDs[i] = extentionController.registerControlledSlot(dummy.addFluidSlot(i, module.getFluidInventory(), liquidLeft + 11, 24));
    }
   
    if(hasByproductExtractor) {
      byproductSlotID = extentionController.registerControlledSlot(dummy.addDummySlot(10, - 26, 29));
    } else {
      byproductSlotID = -1;
    }
   
    cleanupSlotIDs = new int[cleanupSize * 3];
    for(int y = 0;y < cleanupSize;y++) {
      for(int x=0;x < 3;x++) {
        cleanupSlotIDs[y * 3 + x] = extentionController.registerControlledSlot(dummy.addDummySlot(y * 3 + x, module.getCleanupInventory(), x * 18 - 57, y * 18 + 13));
      }
    }
   
    this.inventorySlots = dummy;
    _pipe = module;
View Full Code Here

public class GuiFreqCardContent extends LogisticsBaseGuiScreen {

  public GuiFreqCardContent(EntityPlayer player, IInventory card) {
    super(180, 130, 0, 0);
    DummyContainer dummy = new DummyContainer(player.inventory, card);
    dummy.addRestrictedSlot(0, card, 82, 15, new ISlotCheck() {
      @Override
      public boolean isStackAllowed(ItemStack itemStack) {
        if(itemStack == null) return false;
        if(itemStack.getItem() != LogisticsPipes.LogisticsItemCard) return false;
        if(itemStack.getItemDamage() != LogisticsItemCard.FREQ_CARD) return false;
        return true;
      }
    });
    dummy.addNormalSlotsForPlayerInventory(10, 45);
    this.inventorySlots = dummy;
  }
View Full Code Here

 
  public GuiFluidSupplierPipe(IInventory playerInventory, IInventory dummyInventory, PipeItemsFluidSupplier logic) {
    super(null);
   
   
    DummyContainer dummy = new DummyContainer(playerInventory, dummyInventory);
    dummy.addNormalSlotsForPlayerInventory(18, 97);
   
    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);         
      }
    }
    this.inventorySlots = dummy;

    this.logic = logic;
View Full Code Here

  private PipeItemsFirewall pipe;
 
  public GuiFirewall(PipeItemsFirewall pipe, EntityPlayer player) {
    super(230, 260, 0, 0);
    this.pipe = pipe;
    DummyContainer dummy = new DummyContainer(player.inventory, pipe.inv);
    dummy.addNormalSlotsForPlayerInventory(33, 175);
    for(int x = 0;x < 6;x++) {
      for(int y = 0;y < 6;y++) {
        dummy.addDummySlot(x*6 + y, x*18 + 17, y*18 + 41);
      }
    }
    this.inventorySlots = dummy;
  }
View Full Code Here

  private final PipeItemsInvSysConnector pipe;
  private int localresistance;
 
  public GuiInvSysConnector(EntityPlayer player, PipeItemsInvSysConnector pipe) {
    super(180,200,0,0);
    DummyContainer dummy = new DummyContainer(player.inventory, pipe.inv);
   
    dummy.addRestrictedSlot(0, pipe.inv, 98, 17, new ISlotCheck() {
      @Override
      public boolean isStackAllowed(ItemStack itemStack) {
        if(itemStack == null) return false;
        if(itemStack.getItem() != LogisticsPipes.LogisticsItemCard) return false;
        if(itemStack.getItemDamage() != LogisticsItemCard.FREQ_CARD) return false;
        return true;
      }
    });
   
    dummy.addNormalSlotsForPlayerInventory(10, 115);
   
    this.inventorySlots = dummy;
    this.pipe = pipe;
    localresistance = pipe.resistance;
  }
View Full Code Here

    _chassiPipe = chassi;
    _moduleInventory = chassi.getModuleInventory();
    //_previousGui = previousGui;
   
   
    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);
    }
   
    this.inventorySlots = dummy;
   
    xSize = 194;
View Full Code Here

TOP

Related Classes of logisticspipes.utils.gui.DummyContainer

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.