Skip to content
Back to top
View this page

# `frame_important`

Module with structures used for determining which block IDs are FrameImportant.

## `world_frame_important`

Submodule containing `WorldSections`.

class lihzahrd.terraria.world.frame_important.world_frame_important.WorldFrameImportant(value: Value)

  `PackPrimitive` representing a variable-length `list` of `bool` denoting whether each block ID was written to the file as FrameImportant or not.

  exception TooManyItemsError(value: Value)

    There are more items in the list than how many can be represented.

  __getitem__(key: int) → bool

    Check whether the block ID `key` was written as FrameImportant or not.

    If the inner `value` does not have as many entries as required by `key`, return `False`.

    Parameters:

      key – The block ID to check.

    Returns:

      Whether it is FrameImportant.

  __setitem__(key: int, value: bool) → None

    Mark the block ID `key` as positively or negatively FrameImportant.

    If the inner `value` does not have as many entries as required by `key`, create them, and initialize them as `False`.

    Parameters:

      - key – The block ID to alter the value of.

      - value – Whether it should be FrameImportant.