Itemmeta

Discussion in 'Plugin Development' started by xXCapzXx, Nov 23, 2014.

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

    xXCapzXx

    So usually, I've been having trouble with ItemMeta, so say if you had a sword, that's 1 word. But if you have FISHING_ROD, it is 2, so it doesn't allow me somehow, could someone help me, or send me an item meta for a fishing rod saying Grapple Hook
     
  2. Offline

    TeddyTheTeddy

    Code:java
    1. ItemStack itemStack = new ItemStack(Material.FISHING_ROD, 1);
    2. ItemMeta itemMeta = itemStack.getItemMeta();
    3.  
    4.  
    5. itemMeta.setDisplayName("Grapple Hook");
    6.  
    7. itemStack.setItemMeta(itemMeta);


    I didn't quite get what you were talking about, but I think this should help.
     
  3. Offline

    JordyPwner

    Check for the ItemMeta
     
  4. Offline

    xXCapzXx

    Exactly what I wanted, thanks!
     
Thread Status:
Not open for further replies.

Share This Page