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

Method isMatchingItem

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

Compares item id, damage and NBT. Accepts wildcard damage. Ignores damage entirely if the item doesn't have subtypes. @param base The stack to compare to. @param comparison The stack to compare. @return true if id, damage and NBT match.

(final ItemStack base, final ItemStack comparison)

Source from the content-addressed store, hash-verified

195 * @param comparison The stack to compare.
196 * @return true if id, damage and NBT match. */
197 public static boolean isMatchingItem(final ItemStack base, final ItemStack comparison) {
198 return isMatchingItem(base, comparison, true, true);
199 }
200
201 /** This variant also checks damage for damaged items. */
202 public static boolean isEqualItem(final ItemStack base, final ItemStack comparison) {

Callers 15

updateCraftingMethod · 0.95
canInsertItemMethod · 0.95
isMatchingIngredientMethod · 0.95
isValidExpansionMethod · 0.95
craftMethod · 0.95
isMatchingItemMethod · 0.95
canCraftMethod · 0.95
matchesMethod · 0.95
isBlacklistedMethod · 0.95
getExamplesListMethod · 0.95
isCraftingEquivalentMethod · 0.95
isMatchingItemOrListMethod · 0.95

Calls 4

isInvalidMethod · 0.95
isWildcardMethod · 0.95
getItemMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected