WowAddons

World of Warcraft Forever API · C_HousingDecor.md, for your AI

C_HousingDecor

35 functions, 11 events, 2 tables, as Blizzard documents them for Forever 1.60.1 (70959).

Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.

Functions

C_HousingDecor.AnyDecorPlacedInRoom

isPlaced = C_HousingDecor.AnyDecorPlacedInRoom(roomGUID)

Returns true if any decor objects are placed in a given room

Arguments

roomGUIDWOWGUID

Returns

isPlacedbool

C_HousingDecor.CancelActiveEditing

C_HousingDecor.CancelActiveEditing()

Cancels all in-progress editing of the selected target, which will reset any unsaved changes and deselect the active target

C_HousingDecor.CommitDecorMovement

C_HousingDecor.CommitDecorMovement()

Attempt to save the changes made to the currently selected decor instance

C_HousingDecor.EnterPreviewState

C_HousingDecor.EnterPreviewState()

C_HousingDecor.ExitPreviewState

C_HousingDecor.ExitPreviewState()

C_HousingDecor.GetAllMaxPlacementBudgets

interiorMaxBudgets, exteriorMaxBudgets = C_HousingDecor.GetAllMaxPlacementBudgets()

Returns the interior and exterior max decor placement budgets for the current owned house interior or plot; Can be increased via house level

Returns

interiorMaxBudgetsnumber[] may be nilMap of budget type to max budget amount; Will be nil if not in an owned House or Plot
exteriorMaxBudgetsnumber[] may be nilMap of budget type to max budget amount; Will be nil if not in an owned House or Plot

C_HousingDecor.GetAllPlacedDecor

placedDecor = C_HousingDecor.GetAllPlacedDecor()

Placed Decor List APIs currently restricted due to being potentially very expensive operations, may be reworked & opened up in the future

Returns

placedDecorHousingDecorInstanceListEntry[]

C_HousingDecor.GetAllSpentPlacementBudgets

interiorSpentBudgets, exteriorSpentBudgets = C_HousingDecor.GetAllSpentPlacementBudgets()

Returns how much of the interior and exterior placement budgets for the current owned house interior or plot's decor budget have been spent

Returns

interiorSpentBudgetsnumber[] may be nilMap of budget type to spent budget amount; Will be nil if not in an owned House or Plot
exteriorSpentBudgetsnumber[] may be nilMap of budget type to spent budget amount; Will be nil if not in an owned House or Plot

C_HousingDecor.GetDecorAssignedPetName

name = C_HousingDecor.GetDecorAssignedPetName(decorGUID)

Returns pet name for the placed decor instance associated with the passed Decor GUID, if there is one

Arguments

decorGUIDWOWGUID

Returns

namestring may be nil

C_HousingDecor.GetDecorCanAttachPet

canAttachPet = C_HousingDecor.GetDecorCanAttachPet(decorID)

Arguments

decorIDnumber

Returns

canAttachPetbool

C_HousingDecor.GetDecorIcon

icon = C_HousingDecor.GetDecorIcon(decorID)

May return nothing.

Arguments

decorIDnumber

Returns

iconfileID

C_HousingDecor.GetDecorInstanceInfoForGUID

info = C_HousingDecor.GetDecorInstanceInfoForGUID(decorGUID)

Returns info for the placed decor instance associated with the passed Decor GUID, if there is one

Arguments

decorGUIDWOWGUID

Returns

infoHousingDecorInstanceInfo may be nil

C_HousingDecor.GetDecorName

name = C_HousingDecor.GetDecorName(decorID)

May return nothing.

Arguments

decorIDnumber

Returns

namestring

C_HousingDecor.GetHoveredDecorInfo

info = C_HousingDecor.GetHoveredDecorInfo()

Returns info for the placed decor instance currently being hovered, if there is one

Returns

infoHousingDecorInstanceInfo may be nil

C_HousingDecor.GetMaxPetPlacementBudget

maxBudget = C_HousingDecor.GetMaxPetPlacementBudget()

Returns the max pet decor placement budget for the current owned house interior or plot

Returns

maxBudgetnumber may be nilWill be nil if not in an owned House or Plot

C_HousingDecor.GetMaxPlacementBudget

maxBudget = C_HousingDecor.GetMaxPlacementBudget()

Returns the max decor placement budget for the current owned house interior or plot; Can be increased via house level

Returns

maxBudgetnumber may be nilWill be nil if not in an owned House or Plot

C_HousingDecor.GetNumDecorPlaced

numPlaced = C_HousingDecor.GetNumDecorPlaced()

Returns the number of individual decor objects placed in the current house or plot; This is NOT the value used in placement budget calculations, see GetSpentPlacementBudget for that

Returns

numPlacednumber

C_HousingDecor.GetNumPreviewDecor

numDecor = C_HousingDecor.GetNumPreviewDecor()

Returns

numDecornumber

C_HousingDecor.GetSelectedDecorInfo

info = C_HousingDecor.GetSelectedDecorInfo()

Returns info for the placed decor instance that's currently selected, if there is one

Returns

infoHousingDecorInstanceInfo may be nil

C_HousingDecor.GetSpentPetPlacementBudget

totalCost = C_HousingDecor.GetSpentPetPlacementBudget()

Returns how much of the current owned house interior or plot's pet decor placement budget has been spent

Returns

totalCostnumber may be nilWill be nil if not in an owned House or Plot

C_HousingDecor.GetSpentPlacementBudget

totalCost = C_HousingDecor.GetSpentPlacementBudget()

Returns how much of the current owned house interior or plot's decor placement budget has been spent; Different kinds of decor take up different budget amounts, so this value isn't an individual decor count, see GetNumDecorPlaced for that

Returns

totalCostnumber may be nilWill be nil if not in an owned House or Plot

C_HousingDecor.HasMaxPlacementBudget

hasMaxBudget = C_HousingDecor.HasMaxPlacementBudget()

Returns whether there's a max decor placement budget available and active for the current player, in the current house interior or plot

Returns

hasMaxBudgetbool

C_HousingDecor.IsDecorSelected

hasSelectedDecor = C_HousingDecor.IsDecorSelected()

Returns true if a placed decor instance is currently selected

Returns

hasSelectedDecorbool

C_HousingDecor.IsGridVisible

gridVisible = C_HousingDecor.IsGridVisible()

Returns

gridVisiblebool

C_HousingDecor.IsHouseExteriorDoorHovered

isHouseExteriorDoorHovered = C_HousingDecor.IsHouseExteriorDoorHovered()

Returns true if the entry door of the house's exterior is currently being hovered

Returns

isHouseExteriorDoorHoveredbool

C_HousingDecor.IsHouseExteriorHovered

isHouseExteriorHovered = C_HousingDecor.IsHouseExteriorHovered()

Returns true if the house's exterior is currently being hovered

Returns

isHouseExteriorHoveredbool

C_HousingDecor.IsHoveringDecor

isHoveringDecor = C_HousingDecor.IsHoveringDecor()

Returns true if a placed decor instance is currently being hovered

Returns

isHoveringDecorbool

C_HousingDecor.IsModeDisabledForPreviewState

isModeDisabled = C_HousingDecor.IsModeDisabledForPreviewState(mode)

Arguments

modeHouseEditorMode

Returns

isModeDisabledbool

C_HousingDecor.IsPreviewState

isPreviewState = C_HousingDecor.IsPreviewState()

Returns

isPreviewStatebool

C_HousingDecor.RemovePlacedDecorEntry

C_HousingDecor.RemovePlacedDecorEntry(decorGUID)

Placed Decor List APIs currently restricted due to being potentially very expensive operations, may be reworked & opened up in the future

Arguments

decorGUIDWOWGUID

C_HousingDecor.RemoveSelectedDecor

C_HousingDecor.RemoveSelectedDecor()

Attempt to return the currently selected decor instance back to the house chest

C_HousingDecor.SetGridVisible

C_HousingDecor.SetGridVisible(gridVisible)

Arguments

gridVisiblebool

C_HousingDecor.SetPlacedDecorEntryHovered

C_HousingDecor.SetPlacedDecorEntryHovered(decorGUID, hovered)

Placed Decor List APIs currently restricted due to being potentially very expensive operations, may be reworked & opened up in the future

Arguments

decorGUIDWOWGUID
hoveredbool

C_HousingDecor.SetPlacedDecorEntrySelected

C_HousingDecor.SetPlacedDecorEntrySelected(decorGUID, selected)

Placed Decor List APIs currently restricted due to being potentially very expensive operations, may be reworked & opened up in the future

Arguments

decorGUIDWOWGUID
selectedbool

Events

HOUSE_DECOR_ADDED_TO_CHEST

decorGUIDWOWGUID
decorIDnumber

HOUSE_EXTERIOR_POSITION_FAILURE

housingResultHousingResult

HOUSE_EXTERIOR_POSITION_SUCCESS

No payload.

HOUSING_DECOR_GRID_VISIBILITY_STATUS_CHANGED

isGridVisiblebool

HOUSING_DECOR_PLACE_FAILURE

housingResultHousingResult

HOUSING_DECOR_PLACE_SUCCESS

decorGUIDWOWGUID
sizeHousingCatalogEntrySize
isNewboolWill be true if the decor is newly placed from storage, false if it was already placed and just moved
isPreviewbool

HOUSING_DECOR_PREVIEW_STATE_CHANGED

isPreviewStatebool

HOUSING_DECOR_REMOVED

decorGUIDWOWGUID

HOUSING_DECOR_SELECT_RESPONSE

resultHousingResult

HOUSING_NEW_DECOR_PLACE_COMPLETE

decorGUIDWOWGUID

HOUSING_NUM_DECOR_PLACED_CHANGED

No payload.

Tables

Enum.LightRadiusIndicatorType enumeration

Always0
Overlap1
Never2

HousingDecorInstanceListEntry structure

Smaller structs with the minimum fields from HousingDecorInstanceInfo needed to identify/display a slim list of placed decor

decorGUIDWOWGUID
namecstring

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows