Package logisticspipes.utils.gui

Examples of logisticspipes.utils.gui.DummyModuleContainer


    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


    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

    return new GuiSimpleFilter(player.inventory, (LogisticsSimpleFilterModule) module);
  }

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

    return new GuiSupplierPipe(player.inventory, ((ModuleActiveSupplier)module).getDummyInventory(), (ModuleActiveSupplier) module, false, new int[9]);
  }

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

    return new GuiCraftingPipe(player, ((ModuleCrafter)module).getDummyInventory(), ((ModuleCrafter)module), false, 0, amount, false, false, 0, cleanupExclude);
  }

  @Override
  public DummyContainer getContainer(EntityPlayer player) {
    DummyModuleContainer dummy = new DummyModuleContainer(player, getInvSlot());
    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

    return new GuiApiaristSink((ModuleApiaristSink) module, player);
  }

  @Override
  public DummyContainer getContainer(EntityPlayer player) {
    DummyModuleContainer dummy = new DummyModuleContainer(player, getInvSlot());
    if(!(dummy.getModule() instanceof ModuleApiaristSink)) return null;
    return dummy;
  }
View Full Code Here

    return new logisticspipes.gui.modules.GuiProvider(player.inventory, (ModuleProvider) module);
  }

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

    return new GuiAdvancedExtractor(player.inventory, (ModuleAdvancedExtractor) module);
  }

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

    return new GuiCCBasedQuickSort(player.inventory, (ModuleCCBasedQuickSort) module);
  }

  @Override
  public DummyContainer getContainer(EntityPlayer player) {
    DummyModuleContainer dummy = new DummyModuleContainer(player, getInvSlot());
    if(!(dummy.getModule() instanceof ModuleCCBasedQuickSort)) return null;
    return dummy;
  }
View Full Code Here

    return new GuiApiaristAnalyser((ModuleApiaristAnalyser) module, player.inventory);
  }

  @Override
  public DummyContainer getContainer(EntityPlayer player) {
    DummyModuleContainer dummy = new DummyModuleContainer(player, getInvSlot());
    if(!(dummy.getModule() instanceof ModuleApiaristAnalyser)) return null;
    return dummy;
  }
View Full Code Here

TOP

Related Classes of logisticspipes.utils.gui.DummyModuleContainer

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.