Class Item


  • public class Item
    extends Content
    • Constructor Detail

    • Method Detail

      • getId

        public String getId()
        Namespaced item ID. Will use 'minecraft:air' if null.
      • getCount

        public int getCount()
        Optional. Size of the item stack.
      • getTag

        public ItemTag getTag()
        Optional. Item tag.
      • setId

        public void setId​(String id)
        Namespaced item ID. Will use 'minecraft:air' if null.
      • setCount

        public void setCount​(int count)
        Optional. Size of the item stack.
      • setTag

        public void setTag​(ItemTag tag)
        Optional. Item tag.