Add more util function

This commit is contained in:
miozune authored and Jason Mitchell committed 2022-02-10 08:38:02 -08:00
1 parent 00dacef241
commit 49b22e0683
2 files changed
+14

No files matched your search

@@ -98,6 +98,9 @@ public class PositionedStack
return false;
}
/**
* NBT-friendly version of {@link #contains(ItemStack)}
*/
public boolean containsWithNBT(ItemStack ingredient) {
for(ItemStack item : items)
if(NEIServerUtils.areStacksSameTypeCraftingWithNBT(item, ingredient))