# lihzahrd.World

class lihzahrd.World(version: Version, signature: Signature, savefile_type: int, revision: Revision, is_favorite: bool, name: str, generator: GeneratorInfo, uuid_: UUID, id_: int, bounds: Rect, size: Coordinates, difficulty: Difficulty, is_drunk_world: bool, is_for_the_worthy: bool, is_tenth_anniversary: bool, is_the_constant: bool, is_bee_world: bool, is_upside_down: bool, is_trap_world: bool, is_zenith_world: bool, created_on, styles: Styles, backgrounds: Backgrounds, spawn_point: Coordinates, underground_level: float, cavern_level: float, time: Time, events: Events, dungeon_point: Coordinates, world_evil: WorldEvilType, saved_npcs: SavedNPCs, altars_smashed: int, is_hardmode: bool, shadow_orbs: ShadowOrbs, bosses_defeated: BossesDefeated, anglers_quest: AnglerQuest, clouds: Clouds, cultist_delay: int, tiles: TileMatrix, bestiary: Bestiary, journey_powers: JourneyPowers, chests: list[Chest], signs: list[Sign], shimmered_npcs: list[int], npcs: list[NPC], mobs: list[Mob], tile_entities: list[TileEntity], weighed_pressure_plates: list[WeighedPressurePlate], rooms: list[Room], pets: Pets, halloween_today: bool, xmas_today: bool, treetop_variants: TreetopVariants, saved_ore_tiers: SavedOreTiers, unknown_file_format_data: bytes = b'', unknown_world_header_data: bytes = b'', unknown_world_tiles_data: bytes = b'', unknown_chests_data: bytes = b'', unknown_signs_data: bytes = b'', unknown_npcs_data: bytes = b'', unknown_tile_entities_data: bytes = b'', unknown_pressure_plates_data: bytes = b'', unknown_town_manager_data: bytes = b'', unknown_bestiary_data: bytes = b'', unknown_journey_powers_data: bytes = b'')

  The Python representation of a Terraria world.

  altars_smashed: int

    The number of Demon Altars smashed with a Pwnhammer (or better).

  anglers_quest: AnglerQuest

    Information about today’s Angler’s Quest.

  backgrounds: Backgrounds

    The backgrounds of the various biomes.

  bestiary: Bestiary

    Information about the bestiary, including sightings, kills and takling to NPCs.

  bosses_defeated: BossesDefeated

    Which bosses have been defeated in the world.

  bounds: Rect

    The world size in pixels.

  cavern_level: float

    The depth at which the cavern biome starts.

  chests: list[Chest]

    A list of all the containers (chests, barrels) in the world.

  classmethod create_from_file(filename: str)

    Create a World object from a .wld file.

    Warning

    Parsing an entire world may take up to a few minutes and quite a bit of memory!

    Parameters:

      filename – The name of the file that should be parsed.

  created_on

    The date and time this world was created in.

  property crimson_hearts: ShadowOrbs

    Information related to the Shadow Orbs or Crimson Hearts in the world.

  difficulty: Difficulty

    //terraria.gamepedia.com/Difficulty) the game is in.

    Type:

      The difficulty (https

  dungeon_point: Coordinates

    The Old Man spawn point.

  events: Events

    Currently ongoing world events.

  generator: GeneratorInfo

    Information about the generation of this world.

  halloween_today: bool

    Is today an Halloween reward day? Triggered by reaching Wave 15 of the Pumpkin Moon.

  id: int

    The world id. Used to name the minimap file.

  is_bee_world: bool

    If the world was created with the Not the bees seed.

  property is_classic

    If the world is in classic difficulty or not.

  is_drunk_world: bool

    If the world was created with the Drunk world seed.

  property is_expert

    If the world is in expert difficulty or not.

  is_favorite: bool

    If the world is marked as favorite or not.

  is_for_the_worthy: bool

    If the world was created with the For the worthy seed.

  is_hardmode: bool

    Whether or not the world is in hardmode.

  property is_journey

    If the world is in journey difficulty or not.

  property is_legendary

    If the world is in legendary difficulty or not.

  property is_master

    If the world is in master difficulty or not.

  is_tenth_anniversary: bool

    If the world was created with the Celebrationmk10 <https://terraria.wiki.gg/wiki/Secret_world_seeds#Celebrationmk10> seed.

  is_the_constant: bool

    If the world was created with The Constant seed.

  is_trap_world: bool

    If the world was created with the No traps seed.

  is_upside_down: bool

    If the world was created with the Don’t dig up seed.

  is_zenith_world: bool

    If the world was created with the Get fixed boi seed.

  journey_powers: JourneyPowers

    Status of powers available in Journey mode.

  mobs: list[Mob]

    (Unknown, possibly a list of mobs in the world?)

  name: str

    The name the world was given at creation. Doesn’t always match the filename.

  npcs: list[NPC]

    A list of all the NPCs currently living in the world, including the Old Man.

  pets: Pets

    Which pets have bene purchased.

  revision: Revision

    The number of times this world was saved.

  saved_npcs: SavedNPCs

    The NPCs that were rescued by the player.

  saved_ore_tiers: SavedOreTiers

    The metals that generated in the world.

  savefile_type

    The format of the save file. Should be 2 for all versions following 1.2.

  shadow_orbs: ShadowOrbs

    Information related to the Shadow Orbs or Crimson Hearts in the world.

  shimmered_npcs: list[int]

    A list of the ids of the NPCs that have been shimmered.

  signature: Signature

    The signature with which the world was saved.

  signs: list[Sign]

    A list of all non-empty signs in the world.

  size: Coordinates

    The world size in tiles.

  spawn_point: Coordinates

    The coordinates of the spawn point.

  styles: Styles

    The styles of various world elements.

  tile_entities: list[TileEntity]

    A list of tile entities in the world, such as Training Dummies, Item Frames and Logic Sensors.

  tiles: TileMatrix

    A matrix of all the tiles present in the world.

  time: Time

    Game time related information.

  treetop_variants: TreetopVariants

    Treetops variants that can exist in the world.

  underground_level: float

    The depth at which the underground biome starts.

  uuid: UUID

    The Universally Unique ID of this world.

  version: Version

    The game version when this savefile was last saved.

  weighed_pressure_plates: list[WeighedPressurePlate]

    A list of all Weighed Pressure Plates in the world.

  world_evil: WorldEvilType

    Whether the world has Corruption or Crimson.

  xmas_today: bool

    Is today a Xmas reward day? Triggered by reaching Wave 20 of the Frost Moon.