Skip to main content

Material

class Material

constructor

new Material(data, enka)
PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
dataJsonObject
enkaEnkaClient

Properties

id

Type: number


enka

Type: EnkaClient


name

Type: TextAssets


description

Type: TextAssets


icon

Type: ImageAssets


pictures

Type: ImageAssets[]


itemType

Type: ItemType


materialType

Type: string | null


stars

Type: number | null


Methods

getMaterialByData

static

Returns: Material

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
dataJsonObject
enkaEnkaClient

getMaterialById

static

Returns: Material

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
idnumber | string
enkaEnkaClient