Package logisticspipes.modules

Examples of logisticspipes.modules.ModuleElectricManager


    super(id);
  }

  @Override
  public Object getClientGui(EntityPlayer player) {
    ModuleElectricManager module = this.getLogisticsModule(player.getEntityWorld(), ModuleElectricManager.class);
    if(module == null) return null;
    module.setDischargeMode(isFlag());
    return new GuiElectricManager(player.inventory, module);
  }
View Full Code Here


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

  @Override
  public DummyContainer getContainer(EntityPlayer player) {
    ModuleElectricManager module = this.getLogisticsModule(player.getEntityWorld(), ModuleElectricManager.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);
    }
View Full Code Here

    return new ElectricManagetMode(getId());
  }

  @Override
  public void processPacket(EntityPlayer player) {
    ModuleElectricManager module = this.getLogisticsModule(player, ModuleElectricManager.class);
    if(module == null) return;
    module.setDischargeMode(isFlag());
  }
View Full Code Here

    return new ElectricManagerPacket(getId());
  }

  @Override
  public void processPacket(EntityPlayer player) {
    ModuleElectricManager module = this.getLogisticsModule(player, ModuleElectricManager.class);
    if(module == null) return;
    module.setDischargeMode(this.isFlag());
  }
View Full Code Here

TOP

Related Classes of logisticspipes.modules.ModuleElectricManager

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.