feat: calculation logic start

This commit is contained in:
Discreater committed 2021-05-01 00:27:40 +08:00
1 parent 477a84804e
commit 37a94075c7
23 files changed
+273 -192

No files matched your search

@@ -105,6 +105,10 @@ public class Recipe {
return ret;
}
public boolean matches(ILabel label, enumIoType type) {
return Arrays.stream(getLabel(type)).anyMatch(i -> ILabel.MERGER.merge(label, i, true).isPresent());
}
public enum enumIoType {
INPUT, OUTPUT, CATALYST;