Advertisement
Guest User

Untitled

a guest
Oct 10th, 2014
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.71 KB | None | 0 0
  1.  
  2.   def getComponentsInAssemblerRecipeDisplayString(tech: EnumTechLevel) = {
  3.     Femtocraft.recipeManager.assemblyRecipes.getAllRecipes.filter(p => {
  4.       p.input match {
  5.         case null => false
  6.         case _    =>
  7.           p.input.exists {
  8.                            case null => false
  9.                            case i    =>
  10.                              val it = i.getItem
  11.                              if (it == null) false else getComponents(tech).contains(it)
  12.                          }
  13.       }
  14.     }).map(i => i.output.getItem).map(i => "__Recipe.Assembler:" + FemtocraftStringUtils.itemStackToString(new ItemStack(i)) + "--" + i.getItemDisplayName(new ItemStack(i)) + "__").aggregate("")(_ + _, _ + _)
  15.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement