Examples of DummyContainer


Examples of logisticspipes.utils.gui.DummyContainer

  @Override
  public DummyContainer getContainer(EntityPlayer player) {
    ModuleCCBasedQuickSort module = this.getLogisticsModule(player.getEntityWorld(), ModuleCCBasedQuickSort.class);
    if(module == null) return null;
    return new DummyContainer(player.inventory, null);
  }
View Full Code Here

Examples of logisticspipes.utils.gui.DummyContainer

  @Override
  public DummyContainer getContainer(EntityPlayer player) {
    ModuleModBasedItemSink module = this.getLogisticsModule(player.getEntityWorld(), ModuleModBasedItemSink.class);
    if(module == null) return null;
    DummyContainer dummy = new DummyContainer(player.inventory, new ItemIdentifierInventory(1, "TMP", 1));
    dummy.addDummySlot(0, 0, 0);
    dummy.addNormalSlotsForPlayerInventory(0, 0);
    return dummy;
  }
View Full Code Here

Examples of logisticspipes.utils.gui.DummyContainer

  @Override
  public DummyContainer getContainer(EntityPlayer player) {
    ModuleThaumicAspectSink module = this.getLogisticsModule(player.getEntityWorld(), ModuleThaumicAspectSink.class);
    if(module == null) return null;
    DummyContainer dummy = new DummyContainer(player.inventory, new ItemIdentifierInventory(1, "TMP", 1));
    dummy.addDummySlot(0, 0, 0);
    dummy.addNormalSlotsForPlayerInventory(0, 0);
    return dummy;
  }
View Full Code Here

Examples of logisticspipes.utils.gui.DummyContainer

  @Override
  public DummyContainer getContainer(EntityPlayer player) {
    ModuleCrafter module = this.getLogisticsModule(player.getEntityWorld(), ModuleCrafter.class);
    if(module == null) return null;
    DummyContainer dummy = new DummyContainer(player.inventory, module.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);
       
        for(int i=0;i < this.liquidCrafter;i++) {
      int liquidLeft = -(i*40) - 40;
      dummy.addFluidSlot(i, module.getFluidInventory(), liquidLeft + 13, 42);
    }

        if(this.hasByproductExtractor) {
          dummy.addDummySlot(10, 197, 104);
        }
       
        for(int Y = 0;Y < this.cleanupSize;Y++) {
      for(int X=0;X < 3;X++) {
        dummy.addDummySlot(Y * 3 + X, module.getCleanupInventory(), X * 18 - 57, Y * 18 + 13);
      }
    }
   
    return dummy;
  }
View Full Code Here

Examples of logisticspipes.utils.gui.DummyContainer

  @Override
  public DummyContainer getContainer(EntityPlayer player) {
    ModuleOreDictItemSink module = this.getLogisticsModule(player.getEntityWorld(), ModuleOreDictItemSink.class);
    if(module == null) return null;
    DummyContainer dummy = new DummyContainer(player.inventory, new ItemIdentifierInventory(1, "TMP", 1));
    dummy.addDummySlot(0, 0, 0);
    dummy.addNormalSlotsForPlayerInventory(0, 0);
    return dummy;
  }
View Full Code Here

Examples of logisticspipes.utils.gui.DummyContainer

  @Override
  public DummyContainer getContainer(EntityPlayer player) {
    ModuleActiveSupplier module = this.getLogisticsModule(player.getEntityWorld(), ModuleActiveSupplier.class);
    if(module == null) return null;
    DummyContainer dummy = new DummyContainer(player.inventory, module.getDummyInventory());
    dummy.addNormalSlotsForPlayerInventory(18, 97);
   
    for (int row = 0; row < 3; row++) {
      for (int column = 0; column < 3; column++) {
        dummy.addDummySlot(column + row * 3, 72 + column * 18, 18 + row * 18);
      }
    }
    return dummy;
  }
View Full Code Here

Examples of logisticspipes.utils.gui.DummyContainer

  @Override
  public DummyContainer getContainer(EntityPlayer player) {
    ModuleProvider module = this.getLogisticsModule(player.getEntityWorld(), ModuleProvider.class);
    if(module == null) return null;
    DummyContainer dummy = new DummyContainer(player.inventory, module.getFilterInventory());
    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);         
      }
    }
    return dummy;
  }
View Full Code Here

Examples of logisticspipes.utils.gui.DummyContainer

  @Override
  public DummyContainer getContainer(EntityPlayer player) {
    ModuleItemSink module = this.getLogisticsModule(player.getEntityWorld(), ModuleItemSink.class);
    if(module == null) return null;
    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.DummyContainer

    return new GuiItemSink(player.inventory, (ModuleItemSink) module);
  }

  @Override
  public DummyContainer getContainer(EntityPlayer player) {
    DummyContainer dummy = new DummyModuleContainer(player, getInvSlot());
    if(!(((DummyModuleContainer)dummy).getModule() instanceof ModuleItemSink)) return null;
    ((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;
  }
View Full Code Here

Examples of logisticspipes.utils.gui.DummyContainer

    return new GuiExtractor(player.inventory, (LogisticsSneakyDirectionModule) module);
  }

  @Override
  public DummyContainer getContainer(EntityPlayer player) {
    DummyContainer dummy = new DummyModuleContainer(player, getInvSlot());
    if(!(((DummyModuleContainer)dummy).getModule() instanceof LogisticsSneakyDirectionModule)) return null;
    return dummy;
  }
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.