Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def getComponentsInAssemblerRecipeDisplayString(tech: EnumTechLevel) = {
- Femtocraft.recipeManager.assemblyRecipes.getAllRecipes.filter(p => {
- p.input match {
- case null => false
- case _ =>
- p.input.exists {
- case null => false
- case i =>
- val it = i.getItem
- if (it == null) false else getComponents(tech).contains(it)
- }
- }
- }).map(i => i.output.getItem).map(i => "__Recipe.Assembler:" + FemtocraftStringUtils.itemStackToString(new ItemStack(i)) + "--" + i.getItemDisplayName(new ItemStack(i)) + "__").aggregate("")(_ + _, _ + _)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement