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

Method equals

src/main/java/org/bukkit/inventory/ItemStack.java:191–200  ·  view source on GitHub ↗
(Object obj)

Source from the content-addressed store, hash-verified

189 }
190
191 @Override
192 public boolean equals(Object obj) {
193 if (!(obj instanceof ItemStack)) {
194 return false;
195 }
196
197 ItemStack item = (ItemStack) obj;
198
199 return item.getAmount() == getAmount() && item.getTypeId() == getTypeId();
200 }
201
202 @Override
203 public ItemStack clone() {

Callers

nothing calls this directly

Calls 2

getAmountMethod · 0.95
getTypeIdMethod · 0.95

Tested by

no test coverage detected