MCPcopy Create free account
hub / github.com/GregTech6/gregtech6 / identical

Method identical

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

Source from the content-addressed store, hash-verified

121 public static boolean equalTools_(ItemStack aStack1, ItemStack aStack2, boolean aIgnoreNBT) {return item_(aStack1) == item_(aStack2) && equal(meta_(aStack1), meta_(aStack2)) && (aIgnoreNBT || item_(aStack1) instanceof IItemGTContainerTool || (((nbt_(aStack1) == null) == (nbt_(aStack2) == null)) && (nbt_(aStack1) == null || nbt_(aStack1).equals(nbt_(aStack2)))));}
122
123 public static boolean identical (ItemStack aStack1, ItemStack aStack2) {return aStack1 == aStack2 || (aStack1 != null && aStack2 != null && identical_(aStack1, aStack2));}
124 public static boolean identical_(ItemStack aStack1, ItemStack aStack2) {return aStack1.stackSize == aStack2.stackSize && equal_(aStack1, aStack2, F);}
125
126 public static boolean isGT (Item aItem) {return aItem instanceof IItemGT;}

Callers 1

detectAndSendChangesMethod · 0.95

Calls 1

identical_Method · 0.95

Tested by

no test coverage detected