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

Method equals

common/buildcraft/lib/misc/ItemStackKey.java:24–34  ·  view source on GitHub ↗
(Object obj)

Source from the content-addressed store, hash-verified

22 }
23
24 @Override
25 public boolean equals(Object obj) {
26 if (obj == this) return true;
27 if (obj == null) return false;
28 if (obj.getClass() != this.getClass()) return false;
29 ItemStackKey other = (ItemStackKey) obj;
30 if (hash != other.hash) return false;
31 if (baseStack == null) return other.baseStack == null;
32 if (other.baseStack == null) return false;
33 return baseStack.serializeNBT().equals(other.baseStack.serializeNBT());
34 }
35
36 @Override
37 public String toString() {

Callers 1

onSlotChangeMethod · 0.95

Calls 1

serializeNBTMethod · 0.65

Tested by

no test coverage detected