Add 'Show only favorites' option to the 'Craftables' panel (#800)

Co-authored-by: Martin Robertz <[email protected]>
This commit is contained in:
slprimeandMartin Robertz authored and GitHub committed 2025-11-06 17:37:00 +02:00
1 parent 32bc29e654
commit 2f0de0b6a8
4 files changed
+49 -20

No files matched your search

@@ -183,6 +183,10 @@ public class FavoriteRecipes {
return null;
}
public static int size() {
return items.size() + fluids.size();
}
public static boolean contains(ItemStack stack) {
return getFavorite(stack) != null;
}