Get the item that the player is holding

Discussion in 'Plugin Development' started by MgMaor, Jul 6, 2013.

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

    MgMaor

    [​IMG]
    What the code to get it?
     
  2. Offline

    Firefly

    I'd suggest looking at the javadocs before asking questions such as this.

    The method is getItemInHand()
     
  3. Offline

    MgMaor

    -_-
    Not the item in hand
    The item that he's holding
    like in the picture!
    (mushroom stew)
    [​IMG]
     
  4. Offline

    Firefly

    What picture? The item he's holding is the item in hand isn't it?
     
  5. Offline

    Jimfutsu

    be more specific, do you want the item to be manipulated?
    Or you could just put it in your hand and do what firefly has told you to do :)
     
  6. Offline

    JPG2000

    MgMaor Use the inventory click event. Then scroll through the options.
     
  7. Offline

    MgMaor

    JPG2000
    WTF dude.
    I've learned it like 2 months ago.
     
Thread Status:
Not open for further replies.

Share This Page