Examples of DummyModuleContainer


Examples of logisticspipes.utils.gui.DummyModuleContainer

    return new GuiModBasedItemSink(player.inventory, (ModuleModBasedItemSink) module);
  }

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

    return new GuiOreDictItemSink(player.inventory, (ModuleOreDictItemSink) module);
  }

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

    return new GuiElectricManager(player.inventory, (ModuleElectricManager) module);
  }

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

    return new GuiThaumicAspectSink(player.inventory, (ModuleThaumicAspectSink) module);
  }

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

      }
      module = ((CoreRoutedPipe)pipe.pipe).getLogisticsModule();
    } else if (this.type == ModulePositionType.IN_HAND) {
      if(MainProxy.isServer(player.getEntityWorld())) {
        if(player.openContainer instanceof DummyModuleContainer) {
          DummyModuleContainer dummy = (DummyModuleContainer) player.openContainer;
          module = dummy.getModule();
        } else {
          targetNotFound("Couldn't find " + clazz.getName() + ", container wasn't a DummyModule Container");
          return null;
        }
      } else {
View Full Code Here

Examples of logisticspipes.utils.gui.DummyModuleContainer

  @Override
  public void processPacket(EntityPlayer player) {
    if(this.getType() == ModulePositionType.IN_HAND) {
      if(player.openContainer instanceof DummyModuleContainer) {
        DummyModuleContainer dummy = (DummyModuleContainer) player.openContainer;
        if(dummy.getModule() instanceof ModuleAdvancedExtractor) {
          player.closeScreen();
          NewGuiHandler.getGui(ExtractorModuleInHand.class).setInvSlot(this.getPositionInt()).open(player);
        }
      }
      return;
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.