Skip to content

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:

  • _convert_recipe → recipe
  • _convert_icon_url → icon

icon pydantic-field

icon: str

id pydantic-field

id: int

name pydantic-field

name: str

rarity pydantic-field

rarity: int

recipe pydantic-field

recipe: bool

route pydantic-field

route: str

type pydantic-field

type: str

MaterialDetail pydantic-model

Represents detailed information about a material.

Attributes:

Fields:

Validators:

description pydantic-field

description: str

icon pydantic-field

icon: str

name pydantic-field

name: str

rarity pydantic-field

rarity: int

recipe pydantic-field

route pydantic-field

route: str

sources pydantic-field

sources: list[MaterialSource]

type pydantic-field

type: str

MaterialRecipe pydantic-model

Represents an item used as input in a material crafting recipe.

Attributes:

  • icon (str) –

    The icon URL of the input item.

  • amount (int) –

    The quantity of the input item required.

Fields:

Validators:

  • _convert_icon_url → icon

amount pydantic-field

amount: int

icon pydantic-field

icon: str

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

days pydantic-field

days: list[int] | None = None

name pydantic-field

name: str

type pydantic-field

type: str