[SPIGOT-2499] ItemStack HashCode. Created: 06/Jul/16  Updated: 11/Dec/17  Resolved: 07/Jul/16

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Scetra Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: 1.10, bukkit
Environment:

Ubuntu 16.04_x86_64



 Description   

Currently the ItemStack class has overriden the Object#hashCode function. I am requesting that this either be removed and use Java's default hashCode function or have the final modifier taken off so it can be overriden by plugins implementing the API. It makes sense for this to be so; a stack of dirt shouldn't be 'equal' to a separate stack of dirt with the same properties (material, count, data) because they will still always have a different location.


Generated at Tue Apr 15 11:10:25 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.