Solved How to get the digital ID of an item

Discussion in 'Spigot Plugin Development' started by jerry_00, Mar 5, 2020.

  1. How to get the digital ID of an item
    i tried use item.getEntityID , but can't get
    [​IMG]
     
  2. ok i will try , but Is there any difference between Item and ItemStack ?
     
  3. Yes, Item is the Entity of an ItemStack (a drop).
    If you want to get the ItemStack of an Item entity, just use Item#getItemStack().
    I recommand you to check the javadoc: Item.