()
| 311 | } |
| 312 | |
| 313 | @Override |
| 314 | @Utility |
| 315 | public int hashCode() { |
| 316 | int hash = 1; |
| 317 | |
| 318 | hash = hash * 31 + getType().hashCode(); |
| 319 | hash = hash * 31 + getAmount(); |
| 320 | hash = hash * 31 + (getDurability() & 0xffff); |
| 321 | hash = hash * 31 + (hasItemMeta() ? (meta == null ? getItemMeta().hashCode() : meta.hashCode()) : 0); |
| 322 | |
| 323 | return hash; |
| 324 | } |
| 325 | |
| 326 | /** |
| 327 | * Checks if this ItemStack contains the given {@link Enchantment} |
nothing calls this directly
no test coverage detected