WowAddons

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

C_HousingBlueprint

19 functions, 14 events, 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_HousingBlueprint.CanExportRoom

canExport = C_HousingBlueprint.CanExportRoom(roomGUID)

Returns true if the specific room is allowed to be exported

Arguments

roomGUIDWOWGUID

Returns

canExportbool

C_HousingBlueprint.CanExportTypeFromCurrentLocation

locationValid = C_HousingBlueprint.CanExportTypeFromCurrentLocation(type)

Returns true if the player's current location is a valid place to attempt to export a specific kind of blueprint

Arguments

typeHousingBlueprintType

Returns

locationValidbool

C_HousingBlueprint.CanImportTypeFromCurrentLocation

locationValid = C_HousingBlueprint.CanImportTypeFromCurrentLocation(type)

Returns true if the player's current location is a valid place to attempt to import a specific kind of blueprint

Arguments

typeHousingBlueprintType

Returns

locationValidbool

C_HousingBlueprint.DeleteBlueprint

C_HousingBlueprint.DeleteBlueprint(blueprintID)

Delete the specified owned blueprint; Listen for HousingBlueprintDeleteSuccess and HousingBlueprintDeleteFailure for results

Arguments

blueprintIDBigUInteger

C_HousingBlueprint.ExportBlueprint

C_HousingBlueprint.ExportBlueprint(type, name)

Saves out a new Blueprint of the specified type, using the specified name, if available, based on where the player is currently standing (see GetExportAvailability); Listen for HousingBlueprintExportSuccess and HousingBlueprintExportFailure for results

Arguments

typeHousingBlueprintType
namecstring

C_HousingBlueprint.ExportRoomBlueprint

C_HousingBlueprint.ExportRoomBlueprint(name, roomGUID)

Saves out a new Blueprint of the specified room, using the specified name, if available (see GetExportAvailability); Listen for HousingBlueprintExportSuccess and HousingBlueprintExportFailure for results

Arguments

namecstring
roomGUIDWOWGUID

C_HousingBlueprint.GetBlueprintTypeForCode

type = C_HousingBlueprint.GetBlueprintTypeForCode(shareCode)

Returns what type of Blueprint the specified code is for; Will return HousingBlueprintType.None if code is invalid; Does NOT check whether the shareCode actually matches up to a real valid Blueprint

Arguments

shareCodecstring

Returns

typeHousingBlueprintType

C_HousingBlueprint.GetExportAvailability

availability = C_HousingBlueprint.GetExportAvailability()

Returns success if the player can currently export Blueprints, or a specific error type (ex: invalid location or permissions)

Returns

availabilityHousingResult

C_HousingBlueprint.GetFeatureAvailability

blueprintsAvailability = C_HousingBlueprint.GetFeatureAvailability()

Returns success if Blueprints as a feature is currently enabled and available

Returns

blueprintsAvailabilityHousingResult

C_HousingBlueprint.GetImportAvailability

availability = C_HousingBlueprint.GetImportAvailability()

Returns success if the player can currently import Blueprints, or a specific error type (ex: invalid location or permissions)

Returns

availabilityHousingResult

C_HousingBlueprint.ImportBlueprint

C_HousingBlueprint.ImportBlueprint(shareCode)

Imports the specified blueprint, if available (see GetImportAvailability and CanImportTypeFromCurrentLocation); Listen for HousingBlueprintImportSuccess and HousingBlueprintImportFailure for results

Arguments

shareCodecstring

C_HousingBlueprint.IsShareCodeValid

isValid = C_HousingBlueprint.IsShareCodeValid(shareCode)

Returns true if the string matches the valid expected format for a Blueprint Share Code; Does NOT check whether the shareCode actually matches up to a real valid Blueprint

Arguments

shareCodecstring

Returns

isValidbool

C_HousingBlueprint.RenameBlueprint

C_HousingBlueprint.RenameBlueprint(blueprintID, newName)

Rename the specified owned blueprint to the specified name; Listen for HousingBlueprintRenameSuccess and HousingBlueprintRenameFailure for results

Arguments

blueprintIDBigUInteger
newNamecstring

C_HousingBlueprint.RequestBlueprintCollection

C_HousingBlueprint.RequestBlueprintCollection()

Request the full list of all of the player's Blueprints; This is async, either the HOUSING_BLUEPRINT_COLLECTION_RECEIVED or HOUSING_BLUEPRINT_COLLECTION_FAILURE event will eventually be fired as a result

C_HousingBlueprint.RequestBlueprintContents

C_HousingBlueprint.RequestBlueprintContents(shareCode)

Request the full contents of a specific Blueprint, in context of the current owned plot or house (if any); This is async as content info includes dynamic data from the server, either the HOUSING_BLUEPRINT_CONTENTS_RECEIVED or HOUSING_BLUEPRINT_CONTENTS_FAILURE event will eventually be fired as a result; Calling this again before a prior request has finished will cancel the prior request

Arguments

shareCodecstring

C_HousingBlueprint.RequestBlueprintContentsForContext

C_HousingBlueprint.RequestBlueprintContentsForContext(shareCode, [optionalHouseGUID])

Request the full contents of a specific Blueprint, either in context of a specific owned House or plot, or explicitly outside of any specific context; Typically used to update missing requirement info from previously-retrieved contents; See RequestBlueprintContents for other notes

Arguments

shareCodecstring
optionalHouseGUIDWOWGUID may be nil

C_HousingBlueprint.StartImportRoomBlueprint

C_HousingBlueprint.StartImportRoomBlueprint(shareCode)

Start the process of importing a Room Blueprint. This will lead to Layout Mode being opened, so the player can then select an available door to attach the room to

Arguments

shareCodecstring

C_HousingBlueprint.UpdateBlueprintStringFromInput

updatedShareCode = C_HousingBlueprint.UpdateBlueprintStringFromInput(inputShareCode)

May return nothing.

Arguments

inputShareCodecstring

Returns

updatedShareCodestring

Events

HOUSING_BLUEPRINT_COLLECTION_FAILURE

resultHousingResult

HOUSING_BLUEPRINT_COLLECTION_RECEIVED

collectionHousingBlueprintCollection

HOUSING_BLUEPRINT_CONTENTS_FAILURE

blueprintShareCodestring
resultHousingResult

HOUSING_BLUEPRINT_CONTENTS_RECEIVED

contentInfoHousingBlueprintContentInfo

HOUSING_BLUEPRINT_DELETE_FAILURE

blueprintIDBigUInteger
resultHousingResult

HOUSING_BLUEPRINT_DELETE_SUCCESS

blueprintIDBigUInteger

HOUSING_BLUEPRINT_EXPORT_FAILURE

resultHousingResult

HOUSING_BLUEPRINT_EXPORT_SUCCESS

blueprintShareCodestring

HOUSING_BLUEPRINT_IMPORT_FAILURE

resultHousingResult

HOUSING_BLUEPRINT_IMPORT_STARTED

No payload.

HOUSING_BLUEPRINT_IMPORT_SUCCESS

No payload.

HOUSING_BLUEPRINT_RENAME_FAILURE

blueprintIDBigUInteger
resultHousingResult

HOUSING_BLUEPRINT_RENAME_SUCCESS

blueprintIDBigUInteger
namestring

HOUSING_BLUEPRINTS_AVAILABILITY_CHANGED

No payload.

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