Examples of ModuleProvider


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

Examples of logisticspipes.modules.ModuleProvider

    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

Examples of logisticspipes.modules.ModuleProvider

    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

Examples of logisticspipes.modules.ModuleProvider

    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

Examples of logisticspipes.modules.ModuleProvider

    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

Examples of logisticspipes.modules.ModuleProvider

    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

Examples of logisticspipes.modules.ModuleProvider

    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

Examples of org.mojavemvc.initialization.ModuleProvider

        if (!isEmpty(moduleProviderName)) {
           
            try {
               
                Class<?> moduleProviderClass = Class.forName(moduleProviderName);
                ModuleProvider moduleProvider =
                        (ModuleProvider)FastClass.create(moduleProviderClass).newInstance();
               
                Collection<Module> providedModules = moduleProvider.getModules();
                if (providedModules != null) {
                    modules.addAll(providedModules);
                }
               
            } catch (Exception e) {
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.