Uniquely identify ItemStack without relying on lore/displayname

Discussion in 'Plugin Development' started by Ne0nx3r0, Mar 8, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Ne0nx3r0

    Is there any way to identify a given itemstack (in this instance, a compass and a magma cream) as unique from a regular itemstack?

    I recall there was something you could do with setData or setDurability, but I can't remember or find what it was.
     
  2. Offline

    Tirelessly

    Well both of those only have one data and no durability, so either may work. Metadata is out because it doesn't exist on items which are in your inventory, I believe.
     
  3. Offline

    lol768

    You could stick a ChatColor.RESET at the start of the item display name.
     
Thread Status:
Not open for further replies.

Share This Page