feat: clean up

This commit is contained in:
Discreater committed 2021-05-01 15:38:40 +08:00
1 parent 0f1f888299
commit fa3ba7542c
55 files changed
+611 -490

No files matched your search

@@ -95,10 +95,9 @@ public class Recipes {
return flatStream(group).collect(Collectors.toCollection(ArrayList::new));
}
public Optional<Recipe> getRecipe(ILabel label, Recipe.enumIoType type) {
return flatStream().map(i -> i.one).filter(i -> i.matches(label, type)).findFirst();
public Optional<Recipe> getRecipe(ILabel label) {
return flatStream().map(i -> i.one).filter(i -> i.matches(label)).findFirst();
}
public void forEach(BiConsumer<String, List<Recipe>> consumer) {
records.forEach(consumer);
}