genshin-manager
    Preparing search index...

    Class Material

    Represents a game material or resource used for character and weapon enhancement

    Index

    Constructors

    • Create a Material

      Parameters

      • materialId: number

        material ID

      Returns Material

      const material = new Material(104001)
      console.log(material.name)
      console.log(material.description)

    Properties

    description: string

    Material description

    Material icon

    id: number

    Material ID

    itemType: ItemType

    Material type

    materialType?: MaterialType

    Material type

    name: string

    Material name

    pictures: ImageAssets[]

    Material pictures

    Accessors

    • get allMaterialIds(): number[]

      Get all material IDs

      Returns number[]

      all material IDs

      const allIds = Material.allMaterialIds
      console.log(allIds.length)

    Methods

    • Get material ID by name

      Parameters

      • name: string

        material name

      Returns number[]

      material ID

      const ids = Material.getMaterialIdByName('Mystic Enhancement Ore')
      console.log(ids)