MCPcopy Create free account
hub / github.com/BuildCraft/BuildCraft / containsAll

Method containsAll

common/buildcraft/lib/misc/StackUtil.java:62–69  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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();

Callers 2

getRecipesForMethod · 0.95
equalsMethod · 0.80

Calls 1

containsMethod · 0.95

Tested by

no test coverage detected