Is it possible to add item data to Material?

Discussion in 'Plugin Development' started by brian109, Apr 11, 2015.

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

    brian109

    The title says it all.

    Example: Material.POTION

    Is it possible to change the potion type?
     
  2. Offline

    stormneo7

    This would be an example of a potion of healing.
    Code:
    byte potionID = 8197;
    ItemStack item = new ItemStack(Material.POTION, 1, potionID);
     
  3. Offline

    Gater12

  4. Offline

    nverdier

    @Gater12 Linking to ID's javadocs, I like it :D


    @brian109 This solved? If so, please mark the thread as that.
     
    teej107 likes this.
Thread Status:
Not open for further replies.

Share This Page