WowAddons

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

C_BarberShop

29 functions, 7 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_BarberShop.ApplyCustomizationChoices

success = C_BarberShop.ApplyCustomizationChoices()

Returns

successbool

C_BarberShop.Cancel

C_BarberShop.Cancel()

C_BarberShop.ClearPreviewChoices

C_BarberShop.ClearPreviewChoices([clearSavedChoices])

Arguments

clearSavedChoicesbool default false

C_BarberShop.GetAvailableCustomizations

categories = C_BarberShop.GetAvailableCustomizations()

May return nothing.

Returns

categoriesCharCustomizationCategory[]

C_BarberShop.GetCurrentCameraZoom

zoomLevel = C_BarberShop.GetCurrentCameraZoom()

Returns

zoomLevelnumber

C_BarberShop.GetCurrentCharacterData

characterData = C_BarberShop.GetCurrentCharacterData()

May return nothing.

Returns

characterDataPlayerInfoCharacterData

C_BarberShop.GetCurrentCost

cost = C_BarberShop.GetCurrentCost()

Returns

costnumber

C_BarberShop.GetViewingChrModel

chrModelID = C_BarberShop.GetViewingChrModel()

Returns

chrModelIDnumber may be nil

C_BarberShop.HasAlteredForm

hasAlteredForm = C_BarberShop.HasAlteredForm()

Returns

hasAlteredFormbool

C_BarberShop.HasAnyChanges

hasChanges = C_BarberShop.HasAnyChanges()

Returns

hasChangesbool

C_BarberShop.HasCustomizationFeature

hasCustomizationFeature = C_BarberShop.HasCustomizationFeature(featureMask)

Arguments

featureMaskChrModelFeatureFlags

Returns

hasCustomizationFeaturebool

C_BarberShop.IsViewingAlteredForm

isViewingAlteredForm = C_BarberShop.IsViewingAlteredForm()

Returns

isViewingAlteredFormbool

C_BarberShop.MarkCustomizationChoiceAsSeen

C_BarberShop.MarkCustomizationChoiceAsSeen(choiceID)

Arguments

choiceIDnumber

C_BarberShop.MarkCustomizationOptionAsSeen

C_BarberShop.MarkCustomizationOptionAsSeen(optionID)

Arguments

optionIDnumber

C_BarberShop.PreviewCustomizationChoice

C_BarberShop.PreviewCustomizationChoice(optionID, choiceID)

Arguments

optionIDnumber
choiceIDnumber

C_BarberShop.RandomizeCustomizationChoices

C_BarberShop.RandomizeCustomizationChoices()

C_BarberShop.ResetCameraRotation

C_BarberShop.ResetCameraRotation()

C_BarberShop.ResetCustomizationChoices

C_BarberShop.ResetCustomizationChoices()

C_BarberShop.RotateCamera

C_BarberShop.RotateCamera(diffDegrees)

Arguments

diffDegreesnumber

C_BarberShop.SaveSeenChoices

C_BarberShop.SaveSeenChoices()

C_BarberShop.SetCameraDistanceOffset

C_BarberShop.SetCameraDistanceOffset(offset)

Arguments

offsetnumber

C_BarberShop.SetCameraZoomLevel

C_BarberShop.SetCameraZoomLevel(zoomLevel, [keepCustomZoom])

Arguments

zoomLevelnumber
keepCustomZoombool may be nil

C_BarberShop.SetCustomizationChoice

C_BarberShop.SetCustomizationChoice(optionID, choiceID)

Arguments

optionIDnumber
choiceIDnumber

C_BarberShop.SetModelDressState

C_BarberShop.SetModelDressState(dressedState)

Arguments

dressedStatebool

C_BarberShop.SetSelectedSex

C_BarberShop.SetSelectedSex(sex)

Arguments

sexUnitSex

C_BarberShop.SetViewingAlteredForm

C_BarberShop.SetViewingAlteredForm(isViewingAlteredForm)

Arguments

isViewingAlteredFormbool

C_BarberShop.SetViewingChrModel

C_BarberShop.SetViewingChrModel([chrModelID], [spellShapeshiftFormID])

Arguments

chrModelIDnumber may be nil
spellShapeshiftFormIDnumber may be nil

C_BarberShop.SetViewingShapeshiftForm

C_BarberShop.SetViewingShapeshiftForm([shapeshiftFormID])

Arguments

shapeshiftFormIDnumber may be nil

C_BarberShop.ZoomCamera

C_BarberShop.ZoomCamera(zoomAmount)

Arguments

zoomAmountnumber

Events

BARBER_SHOP_APPEARANCE_APPLIED

No payload.

BARBER_SHOP_CAMERA_VALUES_UPDATED

No payload.

BARBER_SHOP_CLOSE

No payload.

BARBER_SHOP_COST_UPDATE

No payload.

BARBER_SHOP_FORCE_CUSTOMIZATIONS_UPDATE

No payload.

BARBER_SHOP_OPEN

No payload.

BARBER_SHOP_RESULT

successbool

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