Checks to see if the given required stacks are all contained within the collection of containers. Note that this assumes that all of the required stacks are different.
(Collection<ItemStack> required, Collection<ItemStack> containers)
| 60 | /** Checks to see if the given required stacks are all contained within the collection of containers. Note that this |
| 61 | * assumes that all of the required stacks are different. */ |
| 62 | public static boolean containsAll(Collection<ItemStack> required, Collection<ItemStack> containers) { |
| 63 | for (ItemStack req : required) { |
| 64 | if (!contains(req, containers)) { |
| 65 | return false; |
| 66 | } |
| 67 | } |
| 68 | return true; |
| 69 | } |
| 70 | |
| 71 | public static NBTTagCompound stripNonFunctionNbt(ItemStack from) { |
| 72 | NBTTagCompound nbt = NBTUtils.getItemData(from).copy(); |
no test coverage detected