tModLoader v2025.03
A mod to make and play Terraria mods
All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
NPCHeadID.Sets Class Reference

Static Public Attributes

static bool[] CannotBeDrawnInHousingUI = Factory.CreateBoolSet(21, 80)
 If true for a given NPC head ID, then that NPC head will never be drawn in the housing UI. More...
 
static SetFactory Factory = new SetFactory(NPCHeadLoader.NPCHeadCount, nameof(NPCHeadID), Search)
 

Member Data Documentation

◆ CannotBeDrawnInHousingUI

bool [] NPCHeadID.Sets.CannotBeDrawnInHousingUI = Factory.CreateBoolSet(21, 80)
static

If true for a given NPC head ID, then that NPC head will never be drawn in the housing UI.

ModNPCs with ModNPC.TownNPCStayingHomeless set to true will also not draw their heads in the housing UI.
You can get an NPC's head ID using GameContent.TownNPCProfiles.GetHeadIndexSafe(NPC) and ContentSamples.NpcsByNetId.