mirror of
https://github.com/GTNewHorizons/JustEnoughCalculation.git
synced 2026-11-23 13:29:54 +00:00
feat: clean up
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user