How can I "tag" an item?

Discussion in 'Plugin Development' started by Darkedge, Sep 18, 2011.

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

    Darkedge

    In my plugin EnderPerlz, I need a way to identify the specific item, like get the uuid (if it even exsists in minecraft...) I need somehow of identifying the item itself, if this isn't possible I can just tag the player... but...
    Any ideas?
     
  2. Offline

    oxguy3

    I don't understand your explanation...
     
  3. store the hashcode maybe?
     
  4. Offline

    Feed_Dante

    Do you mean you want some sort of unique identifier for the instance if x item? To track it as it moves from container to container? If so ItemStack.hashcode() may work.

    Or do you mean: "How do I check if an item is of type x?"
    Thats alot easier, namely: ItemStack.getType()
    API: http://jd.bukkit.org/apidocs/org/bukkit/inventory/ItemStack.html
     
Thread Status:
Not open for further replies.

Share This Page