Interface ExportedItemInfo


@Experimental @NonExtendable public interface ExportedItemInfo
The data model for item information that was previously exported.
  • Method Details

    • id

      String id()
      Returns the item id, i.e. minecraft:stick.
      Returns:
      the item id, i.e. minecraft:stick
    • icon

      String icon()
      Returns the path of the exported item icon, which can be resolved using WebRenderingContext.getAssetUrl(String).
      Returns:
      the path of the exported item icon, which can be resolved using WebRenderingContext.getAssetUrl(String)
    • displayName

      String displayName()
    • rarity

      String rarity()
      Returns the serialized name of the items rarity, i.e. common or epic.
      Returns:
      the serialized name of the items rarity, i.e. common or epic