Commits
md_5 authored c87a3104aed
352 352 | } |
353 353 | |
354 354 | return itemStack; |
355 355 | } catch (CloneNotSupportedException e) { |
356 356 | throw new Error(e); |
357 357 | } |
358 358 | } |
359 359 | |
360 360 | |
361 361 | |
362 - | public final int hashCode() { |
362 + | public int hashCode() { |
363 363 | int hash = 1; |
364 364 | |
365 365 | hash = hash * 31 + getTypeId(); |
366 366 | hash = hash * 31 + getAmount(); |
367 367 | hash = hash * 31 + (getDurability() & 0xffff); |
368 368 | hash = hash * 31 + (hasItemMeta() ? (meta == null ? getItemMeta().hashCode() : meta.hashCode()) : 0); |
369 369 | |
370 370 | return hash; |
371 371 | } |
372 372 | |