MCPcopy Index your code
hub / github.com/GregTech6/gregtech6 / equal_

Method equal_

src/main/java/gregapi/util/ST.java:94–94  ·  view source on GitHub ↗
(ItemStack aStack1, ItemStack aStack2, boolean aIgnoreNBT)

Source from the content-addressed store, hash-verified

92 public static boolean equal (ItemStack aStack1, ItemStack aStack2) {return equal(aStack1, aStack2, F);}
93 public static boolean equal (ItemStack aStack1, ItemStack aStack2, boolean aIgnoreNBT) {return aStack1 != null && aStack2 != null && equal_(aStack1, aStack2, aIgnoreNBT);}
94 public static boolean equal_(ItemStack aStack1, ItemStack aStack2, boolean aIgnoreNBT) {return item_(aStack1) == item_(aStack2) && equal(meta_(aStack1), meta_(aStack2)) && (aIgnoreNBT || (((nbt_(aStack1) == null) == (nbt_(aStack2) == null)) && (nbt_(aStack1) == null || nbt_(aStack1).equals(nbt_(aStack2)))));}
95
96 public static boolean equal (ItemStack aStack, Item aItem ) {return aStack != null && aItem != null && equal_(aStack, aItem );}
97 public static boolean equal (ItemStack aStack, Block aBlock ) {return aStack != null && aBlock != null && equal_(aStack, aBlock);}

Callers 12

add_smeltingMethod · 0.95
RecipeMethod · 0.95
matchesMethod · 0.95
getCraftingResultMethod · 0.95
equalMethod · 0.95
identical_Method · 0.95
moveMethod · 0.95
canPutMethod · 0.95
equal_Method · 0.95
allowInputMethod · 0.95
updateTaskMethod · 0.95
checkStacksEqualMethod · 0.45

Calls 6

item_Method · 0.95
equalMethod · 0.95
meta_Method · 0.95
nbt_Method · 0.95
block_Method · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected