(Object obj)
| 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() { |
no test coverage detected