Checks to see if the given required stack is contained fully in the given container stack.
(ItemStack required, ItemStack container)
| 41 | |
| 42 | /** Checks to see if the given required stack is contained fully in the given container stack. */ |
| 43 | public static boolean contains(ItemStack required, ItemStack container) { |
| 44 | if (canMerge(required, container)) { |
| 45 | return container.stackSize >= required.stackSize; |
| 46 | } |
| 47 | return false; |
| 48 | } |
| 49 | |
| 50 | /** Checks to see if the given required stack is contained fully in a single stack in a list. */ |
| 51 | public static boolean contains(ItemStack required, Collection<ItemStack> containers) { |
no test coverage detected