Item Data

Discussion in 'Spigot Help' started by timelord_shamus, May 18, 2016.

  1. Hello I was wondering if there is a list of item datas for some gui plugins
    for example:
    MOB_SPAWNER
    STAINDED_GLASS_PANE
    it is annoying having to guess what the data name is.
    if anyone can help that would be awesome
     
  2. That's the damage value of the ItemStack. You can set it in the constructor like ItemStack(Material type, int amount, short damage)

    EDIT: Example
    ItemStack blackStainedGlassPane = new ItemStack(Material.STAINED_GLASS_PANE, 1, (short) 15);