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)¶
PackPrimitiverepresenting a variable-lengthlistofbooldenoting 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
keywas written as FrameImportant or not.If the inner
valuedoes not have as many entries as required bykey, returnFalse.- Parameters:
key – The block ID to check.
- Returns:
Whether it is FrameImportant.
- __setitem__(key: int, value: bool) None¶
Mark the block ID
keyas positively or negatively FrameImportant.If the inner
valuedoes not have as many entries as required bykey, create them, and initialize them asFalse.- Parameters:
key – The block ID to alter the value of.
value – Whether it should be FrameImportant.