Material Models# Material Models
material
Classes:
-
Material–Represents a material summary.
-
MaterialDetail–Represents detailed information about a material.
-
MaterialRecipe–Represents an item used as input in a material crafting recipe.
-
MaterialSource–Represents a source where a material can be obtained.
Material
pydantic-model
Represents a material summary.
Attributes:
-
id(int) –The unique ID of the material.
-
name(str) –The name of the material.
-
type(str) –The type or category of the material.
-
recipe(bool) –Whether the material can be crafted.
-
icon(str) –The icon URL for the material.
-
rarity(int) –The rarity rank of the material.
-
route(str) –The route identifier for the material.
Fields:
Validators:
MaterialDetail
pydantic-model
Represents detailed information about a material.
Attributes:
-
name(str) –The name of the material.
-
description(str) –The description of the material.
-
type(str) –The type or category of the material.
-
recipe(list[MaterialRecipe]) –A list of input items required if this material can be crafted.
-
sources(list[MaterialSource]) –A list of sources where this material can be obtained.
-
icon(str) –The icon URL for the material.
-
rarity(int) –The rarity rank of the material.
-
route(str) –The route identifier for the material.
Fields:
-
name(str) -
description(str) -
type(str) -
recipe(list[MaterialRecipe]) -
sources(list[MaterialSource]) -
icon(str) -
rarity(int) -
route(str)
Validators:
MaterialRecipe
pydantic-model
MaterialSource
pydantic-model
Represents a source where a material can be obtained.
Attributes:
-
name(str) –The name of the source (e.g., "Cecilia Garden", "Dropped by Cryo Slimes").
-
type(str) –The type of source (e.g., "Domain", "Monster").
-
days(list[int] | None) –A list of integers representing the days of the week the source is available (optional, 1=Monday, 7=Sunday).
Fields:
Validators:
-
_convert_days→days