Package logisticspipes.modules.abstractmodules

Examples of logisticspipes.modules.abstractmodules.LogisticsModule


      par3List.add(new ItemStack(this, 1, module.getId()));
    }
  }

  private void openConfigGui(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World) {
    LogisticsModule module = getModuleForItem(par1ItemStack, null, null, null);
    if(module != null && module.hasGui()) {
      if(par1ItemStack != null && par1ItemStack.stackSize > 0) {
        ItemModuleInformationManager.readInformation(par1ItemStack, module);
        module.registerPosition(ModulePositionType.IN_HAND, par2EntityPlayer.inventory.currentItem);
        ((LogisticsGuiModule)module).getInHandGuiProviderForModule().open(par2EntityPlayer);
      }
    }
  }
View Full Code Here


      }
    }
  }
  @Override
  public boolean hasEffect(ItemStack par1ItemStack) {
    LogisticsModule module = getModuleForItem(par1ItemStack, null, null, null);
    if(module != null) {
      if(par1ItemStack != null && par1ItemStack.stackSize > 0) {
        return module.hasEffect();
      }
    }
    return false;
  }
View Full Code Here

      if(itemStack.getItemDamage() == module.getId()) {
        if(module.getILogisticsModuleClass() == null) return null;
        if(currentModule != null) {
          if (module.getILogisticsModuleClass().equals(currentModule.getClass())) return currentModule;
        }
        LogisticsModule newmodule = module.getILogisticsModule();
        if(newmodule == null) return null;
        newmodule.registerHandler(world, service);
        return newmodule;
      }
    }
    return null;
  }
View Full Code Here

    private void registerModuleIcon(IIconRegister par1IIconRegister) {
      if(moduleClass == null) {
        this.moduleIcon = par1IIconRegister.registerIcon("logisticspipes:" + getUnlocalizedName().replace("item.","") + "/blank");
      } else {
        try {
          LogisticsModule instance = moduleClass.newInstance();
          this.moduleIcon = instance.getIconTexture(par1IIconRegister);
        } catch (InstantiationException e) {
          e.printStackTrace();
        } catch (IllegalAccessException e) {
          e.printStackTrace();
        }
View Full Code Here

    super(id);
  }
 
  @Override
  public Object getClientGui(EntityPlayer player) {
    LogisticsModule module = this.getLogisticsModule(player);
    if(!(module instanceof ModuleItemSink)) return null;
    return new GuiItemSink(player.inventory, (ModuleItemSink) module);
  }
View Full Code Here

    super(id);
  }
 
  @Override
  public Object getClientGui(EntityPlayer player) {
    LogisticsModule module = this.getLogisticsModule(player);
    if(!(module instanceof LogisticsSneakyDirectionModule)) return null;
    return new GuiExtractor(player.inventory, (LogisticsSneakyDirectionModule) module);
  }
View Full Code Here

    super(id);
  }

  @Override
  public Object getClientGui(EntityPlayer player) {
    LogisticsModule module = this.getLogisticsModule(player);
    if (!(module instanceof LogisticsSimpleFilterModule)) return null;
    return new GuiSimpleFilter(player.inventory, (LogisticsSimpleFilterModule) module);
  }
View Full Code Here

    super(id);
  }
 
  @Override
  public Object getClientGui(EntityPlayer player) {
    LogisticsModule module = this.getLogisticsModule(player);
    if(!(module instanceof ModuleActiveSupplier)) return null;
    return new GuiSupplierPipe(player.inventory, ((ModuleActiveSupplier)module).getDummyInventory(), (ModuleActiveSupplier) module, false, new int[9]);
  }
View Full Code Here

    super(id);
  }
 
  @Override
  public Object getClientGui(EntityPlayer player) {
    LogisticsModule module = this.getLogisticsModule(player);
    if(!(module instanceof ModuleCrafter)) return null;
    return new GuiCraftingPipe(player, ((ModuleCrafter)module).getDummyInventory(), ((ModuleCrafter)module), false, 0, amount, false, false, 0, cleanupExclude);
  }
View Full Code Here

    super(id);
  }

  @Override
  public Object getClientGui(EntityPlayer player) {
    LogisticsModule module = this.getLogisticsModule(player);
    if(!(module instanceof ModuleApiaristSink)) return null;
    return new GuiApiaristSink((ModuleApiaristSink) module, player);
  }
View Full Code Here

TOP

Related Classes of logisticspipes.modules.abstractmodules.LogisticsModule

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.