Package logisticspipes.modules

Examples of logisticspipes.modules.ModuleProvider


  }
 
  public PipeItemsProviderLogistics(Item item, LogisticsOrderManager logisticsOrderManager) {
    this(item);
    _orderManager = logisticsOrderManager;
    myModule = new ModuleProvider();
    myModule.registerHandler(this, this);
  }
View Full Code Here


    return new ProviderModuleNextModePacket(getId());
  }

  @Override
  public void processPacket(EntityPlayer player) {
    final ModuleProvider module = this.getLogisticsModule(player, ModuleProvider.class);
    if(module == null) return;
    module.nextExtractionMode();
    MainProxy.sendPacketToPlayer(PacketHandler.getPacket(ProviderModuleMode.class).setMode(module.getExtractionMode().ordinal()).setModulePos(module), player);
  }
View Full Code Here

    super(id);
  }
 
  @Override
  public Object getClientGui(EntityPlayer player) {
    ModuleProvider module = this.getLogisticsModule(player.getEntityWorld(), ModuleProvider.class);
    if(module == null) return null;
    module.setFilterExcluded(exclude);
    module.setExtractionMode(extractorMode);
    return new logisticspipes.gui.modules.GuiProvider(player.inventory, module);
  }
View Full Code Here

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

  @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;
   
View Full Code Here

    return new ProviderModuleIncludePacket(getId());
  }

  @Override
  public void processPacket(EntityPlayer player) {
    final ModuleProvider module = this.getLogisticsModule(player, ModuleProvider.class);
    if(module == null) return;
    module.setFilterExcluded(!module.isExcludeFilter());
    MainProxy.sendPacketToPlayer(PacketHandler.getPacket(ProviderModuleInclude.class).setFlag(module.isExcludeFilter()).setModulePos(module), player);
  }
View Full Code Here

    return new ProviderModuleMode(getId());
  }

  @Override
  public void processPacket(EntityPlayer player) {
    final ModuleProvider module = this.getLogisticsModule(player, ModuleProvider.class);
    if(module == null) return;
    module.setExtractionMode(mode);
  }
View Full Code Here

    return new ProviderModuleInclude(getId());
  }

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

TOP

Related Classes of logisticspipes.modules.ModuleProvider

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.