Howto getUUID() from an ItemStack in Inv. ?

Discussion in 'Plugin Development' started by iZanax, Nov 29, 2012.

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

    iZanax

    PHP:
                    player.getInventory().setItem(1, new ItemStack(2905));
                    
    player.getInventory().getItem(1).getUUID() // <- can't
    Is it possible to get the UUID of an ItemStack?
    It will give me a lot of possibilities, but .getUUID() is not an option at the code above.
    Is there a way to make it, or is it not possible at ItemStacks?
     
  2. Offline

    Ammar Askar

    ItemStacks do not have UUIDs.
     
  3. Offline

    fireblast709

    iZanax why do you need UUID's?
     
  4. Offline

    iZanax

    fireblast709
    To add a new variable to an ItemStack.
    But as I read, ItemStacks don't got an UUID so I can't do anything with them.
    Too bad. Have to work with an other way again ; (
     
Thread Status:
Not open for further replies.

Share This Page