lihzahrd.header¶
-
class
lihzahrd.header.
AnglerQuest
(current_goal: lihzahrd.header.anglerquestfish.AnglerQuestFish, completed_by: List[str])¶ Information about today’s Angler’s quest.
-
completed_by
: typing.List[str] = None¶ A list of player names who completed the angler’s quest today.
-
current_goal
: AnglerQuestFish = None¶ The fish currently requested by the angler.
-
-
class
lihzahrd.header.
AnglerQuestFish
¶ An enumeration.
-
AMANITIA_FUNGIFIN
= 25¶
-
ANGELFISH
= 26¶
-
BATFISH
= 0¶
-
BLOODY_MANOWAR
= 27¶
-
BONEFISH
= 28¶
-
BUMBLEBEE_TUNA
= 1¶
-
BUNNYFISH
= 29¶
-
CAPN_TUNABEARD
= 30¶
-
CATFISH
= 2¶
-
CLOUDFISH
= 3¶
-
CLOWNFISH
= 31¶
-
CURSEDFISH
= 4¶
-
DEMONIC_HELLFISH
= 32¶
-
DERPFISH
= 33¶
-
DIRTFISH
= 5¶
-
DYNAMITE_FISH
= 6¶
-
EATER_OF_PLANKTON
= 7¶
-
FALLEN_STARFISH
= 8¶
-
FISHOTRON
= 10¶
-
FISHRON
= 34¶
-
GUIDE_VOODOO_FISH
= 22¶
-
HARPYFISH
= 11¶
-
HUNGERFISH
= 12¶
-
ICHORFISH
= 13¶
-
INFECTED_SCABBARDFISH
= 35¶
-
JEWELFISH
= 14¶
-
MIRAGE_FISH
= 15¶
-
MUDFISH
= 36¶
-
MUTANT_FLINXFIN
= 16¶
-
PENGFISH
= 17¶
-
PIXIEFISH
= 18¶
-
SLIMEFISH
= 37¶
-
SPIDERFISH
= 19¶
-
THE_FISH_OF_CTHULHU
= 9¶
-
TROPICAL_BARRACUDA
= 38¶
-
TUNDRA_TROUT
= 20¶
-
UNICORN_FISH
= 21¶
-
WYVERNTAIL
= 23¶
-
ZOMBIE_FISH
= 24¶
-
-
class
lihzahrd.header.
Backgrounds
(bg_underground_snow: int, bg_underground_jungle: int, bg_hell: int, bg_forest: int, bg_corruption: int, bg_jungle: int, bg_snow: int, bg_hallow: int, bg_crimson: int, bg_desert: int, bg_ocean: int, new_bg_1: int, new_bg_2: int, new_bg_3: int, new_bg_4: int, new_bg_5: int)¶ The backgrounds of various world biomes.
-
class
lihzahrd.header.
BossesDefeated
(eye_of_cthulhu: bool, eater_of_worlds: bool, skeletron: bool, queen_bee: bool, the_twins: bool, the_destroyer: bool, skeletron_prime: bool, any_mechnical_boss: bool, plantera: bool, golem: bool, king_slime: bool, goblin_army: bool, clown: bool, frost_moon: bool, pirates: bool, duke_fishron: bool, moon_lord: bool, pumpking: bool, mourning_wood: bool, ice_queen: bool, santa_nk1: bool, everscream: bool, martian_madness: bool, lunatic_cultist: bool, lunar_pillars: lihzahrd.header.pillarsinfo.PillarsInfo, old_ones_army: lihzahrd.header.oldonesarmytiers.OldOnesArmyTiers, empress_of_light: bool, queen_slime: bool)¶ -
any_mechnical_boss
: bool = None¶ Appearently, there’s a different flag for beating any mechanical boss and a specific mechanical boss.
-
-
class
lihzahrd.header.
Clouds
(bg_cloud: int, cloud_number: int, wind_speed: float)¶ Information about… the clouds in the world?
-
class
lihzahrd.header.
Events
(blood_moon: bool, solar_eclipse: bool, invasion: lihzahrd.header.invasion.Invasion, slime_rain: float, rain: lihzahrd.header.rain.Rain, party: lihzahrd.header.party.Party, sandstorm: lihzahrd.header.sandstorm.Sandstorm, lunar_events: lihzahrd.header.lunarevents.LunarEvents, lantern_night: lihzahrd.header.lanternnight.LanternNight)¶ Information about the ongoing world events.
-
blood_moon
: bool = None¶ If the current moon is a Blood Moon.
-
invasion
: Invasion = None¶ Information about the currently ongoing invasion.
-
lantern_night
: LanternNight = None¶ Information about the currently ongoing lantern night.
-
lunar_events
: LunarEvents = None¶ Information about the currently ongoing Lunar Events.
-
party
: Party = None¶ Information about the currently ongoing party.
-
rain
: Rain = None¶ Information about the currently ongoing rain.
-
sandstorm
: Sandstorm = None¶ Information about the currently ongoing sandstorm.
-
slime_rain
: float = None¶ How long the slime rain will go on for.
-
solar_eclipse
: bool = None¶ If the current day is a Solar Eclipse.
-
-
class
lihzahrd.header.
FourPartSplit
(separators: List[int], properties: List)¶ A world property split in four parts, separated by three vertical lines at a certain x coordinate.
-
property
far_left
¶
-
property
far_right
¶
-
get_property_at_x
(x: int)¶
-
property
nearby_left
¶
-
property
nearby_right
¶
-
properties
: typing.List = None¶ The four properties, in order:
The far left property, the one between the left world edge and the first separator.
The nearby left property, between the first and the second separator.
The nearby right property, between the second and the third separator.
The far right property, between the third separator and the right world edge.
-
separators
: typing.List[int] = None¶ The three x coordinates of the vertical separators, in increasing order.
-
property
-
class
lihzahrd.header.
GeneratorInfo
(seed, version)¶ Information about the world generator.
-
seed
= None¶ The seed this world was generated with.
-
version
= None¶ The version of the generator that created this world.
-
-
class
lihzahrd.header.
Invasion
(delay: int, size: int, type_: lihzahrd.header.invasiontype.InvasionType, position: float, size_start: int)¶ Invasions (goblin army, pirates, martian madness…) related information.
-
type
: InvasionType = None¶ The type of the current invasion (goblin army / pirates / martian madness…).
If InvasionType.NONE, no invasion will be active in the world.
-
-
class
lihzahrd.header.
InvasionType
¶ An enumeration.
-
FROST_LEGION
= 2¶
-
GOBLIN_INVASION
= 1¶
-
MARTIAN_MADNESS
= 4¶
-
NONE
= 0¶
-
PIRATE_INVASION
= 3¶
-
-
class
lihzahrd.header.
LanternNight
(nights_on_cooldown: int, genuine: bool, manual: bool, next_night_is_lantern_night: bool)¶ Lantern Night event related information.
-
genuine
: bool = None¶ Was this night started by the game spontaneously?
-
property
is_active
¶
-
manual
: bool = None¶ Was this night started by the player?
-
next_night_is_lantern_night
: bool = None¶ Was a boss just defeated, making the next night a Lantern Night?
-
nights_on_cooldown
: int = None¶ How many nights before the next lantern night can happen.
-
-
class
lihzahrd.header.
LunarEvents
(are_active: bool, pillars_present: lihzahrd.header.pillarsinfo.PillarsInfo)¶ Lunar Events (Lunar Pillars) related information.
-
are_active
: bool = None¶ If the Lunar Events are active or not.
-
pillars_present
: PillarsInfo = None¶ Which pillars are currently present in the world.
-
-
class
lihzahrd.header.
MoonPhase
¶ An enumeration.
-
FIRST_QUARTER
= 6¶
-
FULL_MOON
= 0¶
-
NEW_MOON
= 4¶
-
THIRD_QUARTER
= 2¶
-
WANING_CRESCENT
= 3¶
-
WANING_GIBBOUS
= 1¶
-
WAXING_CRESCENT
= 5¶
-
WAXING_GIBBOUS
= 7¶
-
-
class
lihzahrd.header.
MoonStyle
¶ All possible moon styles.
-
BLUE
= 3¶
-
GREEN
= 5¶
-
ICE
= 4¶
-
ORANGE
= 1¶
-
PINK
= 6¶
-
PINK_ORANGE
= 7¶
-
RINGED_GREEN
= 2¶
-
TRIPLE_PURPLE
= 8¶
-
WHITE
= 0¶
-
-
class
lihzahrd.header.
OldOnesArmyTiers
(tier1, tier2, tier3)¶
-
class
lihzahrd.header.
Party
(thrown_by_party_center: bool, thrown_by_npcs: bool, cooldown: int, partying_npcs: List[int])¶ NPC Party related information.
-
cooldown
: int = None¶ How long a party cannot be started for.
-
property
is_active
¶
-
partying_npcs
: typing.List[int] = None¶ The list of NPC IDs that threw the party.
-
thrown_by_npcs
: bool = None¶ If the item was spontaneously thrown by NPCs.
-
thrown_by_party_center
: bool = None¶ If the party was started by right-clicking a Party Center.
-
-
class
lihzahrd.header.
Pets
(cat: bool, dog: bool, bunny: bool)¶ Information about the Pet Licenses that were activated in the world.
-
bunny
: float = None¶ //terraria.gamepedia.com/Bunny_License) ever activated?
- Type
Was the Bunny License (https
-
cat
: bool = None¶ //terraria.gamepedia.com/Cat_License) ever activated?
- Type
Was the Cat License (https
-
dog
: int = None¶ //terraria.gamepedia.com/Dog_License) ever activated?
- Type
Was the Dog License (https
-
-
class
lihzahrd.header.
PillarsInfo
(solar, vortex, nebula, stardust)¶ A container for information associated with the Lunar Pillars.
-
class
lihzahrd.header.
Rain
(is_active: bool, time_left: int, max_rain: float)¶ Rain related information.
-
is_active
: bool = None¶ If it is currently raining in the world.
-
time_left
: int = None¶ How long it will continue to rain for.
-
-
class
lihzahrd.header.
Sandstorm
(is_active: bool, time_left: int, severity: float, intended_severity: float)¶ Sandstorm related information.
-
is_active
: bool = None¶ If a sandstorm is currently ongoing in the desert.
-
time_left
: int = None¶ How long the sandstorm will continue for.
-
-
class
lihzahrd.header.
SavedNPCs
(goblin_tinkerer: bool, wizard: bool, mechanic: bool, angler: bool, stylist: bool, tax_collector: bool, bartender: bool, golfer: bool, advanced_combat: bool)¶ -
advanced_combat
: bool = None¶ Was the Advanced Combat Technique Book used.
-
-
class
lihzahrd.header.
SavedOreTiers
(tier_1: lihzahrd.enums.blocktype.BlockType, tier_2: lihzahrd.enums.blocktype.BlockType, tier_3: lihzahrd.enums.blocktype.BlockType, tier_4: lihzahrd.enums.blocktype.BlockType, hardmode_tier_1: Optional[lihzahrd.enums.blocktype.BlockType], hardmode_tier_2: Optional[lihzahrd.enums.blocktype.BlockType], hardmode_tier_3: Optional[lihzahrd.enums.blocktype.BlockType])¶ The types of ores that generated in the world.
-
hardmode_tier_1
: Optional[BlockType] = None¶ Cobalt or Palladium? None if it hasn’t been determined yet.
-
hardmode_tier_2
: Optional[BlockType] = None¶ Mythril or Orichalcum? None if it hasn’t been determined yet.
-
hardmode_tier_3
: Optional[BlockType] = None¶ Adamantite or Titanium? None if it hasn’t been determined yet.
-
tier_1
: BlockType = None¶ Copper or Tin?
-
tier_2
: BlockType = None¶ Iron or Lead?
-
tier_3
: BlockType = None¶ Silver or Tungsten?
-
tier_4
: BlockType = None¶ Gold or Platinum?
-
-
class
lihzahrd.header.
ShadowOrbs
(smashed_at_least_once: bool, spawn_meteorite: bool, evil_boss_counter: int)¶ Information related to the Shadow Orbs (or the Crimson Hearts) smashed in the world.
-
evil_boss_counter
: int = None¶ If it is 2, the Eater of Worlds will spawn when a Shadow Orb is smashed.
It is the number of Shadow Orbs broken, modulo 3.
-
smashed_at_least_once
: bool = None¶ If a Shadow Orb has ever been smashed in this world.
-
spawn_meteorite
: bool = None¶ If a Meteorite should land in the world at midnight.
It is set to True when a Shadow Orb is smashed, then it is set to False when the meteorite actually lands.
-
-
class
lihzahrd.header.
Styles
(moon: lihzahrd.header.moonstyle.MoonStyle, trees: lihzahrd.header.fourpartsplit.FourPartSplit, moss: lihzahrd.header.fourpartsplit.FourPartSplit)¶ The styles of various world elements.
-
class
lihzahrd.header.
Time
(current: float, is_daytime: bool, moon_phase: int, sundial_cooldown: int, fast_forward_time: bool)¶ Game time related information.
-
current
: float = None¶ The current game time.
-
is_daytime
: bool = None¶ If the current time represents a day or a night.
-
moon_phase
: int = None¶ The current moon phase.
-
sundial_cooldown
: int = None¶ The number of days the Enchanted Sundial can’t be used for.
-
-
class
lihzahrd.header.
TreetopVariants
(treetop_variants: List[int])¶ (Unknown) Information about the treetop variants in the world.
-
class
lihzahrd.header.
Version
(data: Union[int, str])¶ A Terraria version.
-
_version_ids
= {12: '1.0.5', 20: '1.0.6', 22: '1.0.6.1', 37: '1.1.1', 39: '1.1.2', 67: '1.2', 71: '1.2.0.3.1', 72: '1.2.1.1', 73: '1.2.1.2', 77: '1.2.2', 94: '1.2.3.1', 101: '1.2.4', 102: '1.2.4.1', 140: '1.3.0.1', 146: '1.3.0.1', 147: '1.3.0.2', 149: '1.3.0.3', 151: '1.3.0.4', 153: '1.3.0.5', 154: '1.3.0.6', 155: '1.3.0.7', 156: '1.3.0.8', 168: '1.3.1', 169: '1.3.1.1', 170: '1.3.2', 173: '1.3.2.1', 174: '1.3.3', 175: '1.3.3.1', 176: '1.3.3.2', 177: '1.3.3.3', 178: '1.3.4', 185: '1.3.4.1', 186: '1.3.4.2', 187: '1.3.4.3', 188: '1.3.4.4', 191: '1.3.5', 192: '1.3.5.1', 193: '1.3.5.2', 194: '1.3.5.3', 225: '1.4.0.1', 226: '1.4.0.2', 227: '1.4.0.3', 228: '1.4.0.4', 230: '1.4.0.5'}¶
-
id
¶
-
property
name
¶
-