# C_HousingNeighborhood: World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/C_HousingNeighborhood

## Functions

### C_HousingNeighborhood.CanReturnAfterVisitingHouse

```lua
canReturn = C_HousingNeighborhood.CanReturnAfterVisitingHouse()
```

Returns:
- `canReturn`: bool

### C_HousingNeighborhood.CancelInviteToNeighborhood

```lua
C_HousingNeighborhood.CancelInviteToNeighborhood(playerName)
```

Only available when interacting with a bulletin board game object

Arguments:
- `playerName`: cstring

### C_HousingNeighborhood.DemoteToResident

```lua
C_HousingNeighborhood.DemoteToResident(playerGUID)
```

Only available when interacting with a bulletin board game object

Arguments:
- `playerGUID`: WOWGUID

### C_HousingNeighborhood.GetCornerstoneHouseInfo

```lua
houseInfo = C_HousingNeighborhood.GetCornerstoneHouseInfo()
```

Only available when interacting with a cornerstone game object

Returns:
- `houseInfo`: HouseInfo

### C_HousingNeighborhood.GetCornerstoneNeighborhoodInfo

```lua
neighborhoodInfo = C_HousingNeighborhood.GetCornerstoneNeighborhoodInfo()
```

Only available when interacting with a cornerstone game object

Returns:
- `neighborhoodInfo`: NeighborhoodInfo

### C_HousingNeighborhood.GetCornerstonePurchaseMode

```lua
purchaseMode = C_HousingNeighborhood.GetCornerstonePurchaseMode()
```

Only available when interacting with a cornerstone game object

Returns:
- `purchaseMode`: CornerstonePurchaseMode

### C_HousingNeighborhood.GetCurrentNeighborhoodTextureSuffix

```lua
neighborhoodTextureSuffix = C_HousingNeighborhood.GetCurrentNeighborhoodTextureSuffix()
```

Returns:
- `neighborhoodTextureSuffix`: cstring

### C_HousingNeighborhood.GetDiscountedMovePrice

```lua
movePrice = C_HousingNeighborhood.GetDiscountedMovePrice()
```

Only available when interacting with a cornerstone game object

Returns:
- `movePrice`: number. Can be negative if the refund from moving is more than the cost of the new house

### C_HousingNeighborhood.GetMoveCooldownTime

```lua
movecooldownTime = C_HousingNeighborhood.GetMoveCooldownTime()
```

Only available when interacting with a cornerstone game object

Returns:
- `movecooldownTime`: number

### C_HousingNeighborhood.GetNeighborhoodMapData

```lua
neighborhoodPlots = C_HousingNeighborhood.GetNeighborhoodMapData()
```

Returns:
- `neighborhoodPlots`: NeighborhoodPlotMapInfo[]

### C_HousingNeighborhood.GetNeighborhoodName

```lua
neighborhoodName = C_HousingNeighborhood.GetNeighborhoodName()
```

Returns:
- `neighborhoodName`: string

### C_HousingNeighborhood.GetNeighborhoodPlotName

```lua
neighborhoodName = C_HousingNeighborhood.GetNeighborhoodPlotName(plotIndex)
```

Arguments:
- `plotIndex`: number

Returns:
- `neighborhoodName`: string

### C_HousingNeighborhood.GetPreviousHouseIdentifier

```lua
previousHouseIdentifier = C_HousingNeighborhood.GetPreviousHouseIdentifier()
```

Only available when interacting with a cornerstone game object

Returns:
- `previousHouseIdentifier`: string

### C_HousingNeighborhood.HasPermissionToPurchase

```lua
cantPurchaseReason = C_HousingNeighborhood.HasPermissionToPurchase()
```

Only available when interacting with a cornerstone game object

Returns:
- `cantPurchaseReason`: PurchaseHouseDisabledReason

### C_HousingNeighborhood.InvitePlayerToNeighborhood

```lua
C_HousingNeighborhood.InvitePlayerToNeighborhood(playerName)
```

Only available when interacting with a bulletin board game object

Arguments:
- `playerName`: cstring

### C_HousingNeighborhood.IsNeighborhoodManager

```lua
isManager = C_HousingNeighborhood.IsNeighborhoodManager()
```

Returns:
- `isManager`: bool

### C_HousingNeighborhood.IsNeighborhoodOwner

```lua
isOwner = C_HousingNeighborhood.IsNeighborhoodOwner()
```

Returns:
- `isOwner`: bool

### C_HousingNeighborhood.IsPlayerInOtherPlayersPlot

```lua
isInUnownedPlot = C_HousingNeighborhood.IsPlayerInOtherPlayersPlot()
```

This returns true if the player is in a plot that is owned by another player

Returns:
- `isInUnownedPlot`: bool

### C_HousingNeighborhood.IsPlotAvailableForPurchase

```lua
isAvailable = C_HousingNeighborhood.IsPlotAvailableForPurchase()
```

Only available when interacting with a cornerstone game object

Returns:
- `isAvailable`: bool

### C_HousingNeighborhood.IsPlotOwnedByPlayer

```lua
isPlayerOwned = C_HousingNeighborhood.IsPlotOwnedByPlayer()
```

Only available when interacting with a cornerstone game object

Returns:
- `isPlayerOwned`: bool

### C_HousingNeighborhood.OnBulletinBoardClosed

```lua
C_HousingNeighborhood.OnBulletinBoardClosed()
```

### C_HousingNeighborhood.OnCornerstoneClosed

```lua
C_HousingNeighborhood.OnCornerstoneClosed()
```

### C_HousingNeighborhood.PromoteToManager

```lua
C_HousingNeighborhood.PromoteToManager(playerGUID)
```

Only available when interacting with a bulletin board game object

Arguments:
- `playerGUID`: WOWGUID

### C_HousingNeighborhood.RequestNeighborhoodInfo

```lua
C_HousingNeighborhood.RequestNeighborhoodInfo()
```

### C_HousingNeighborhood.RequestNeighborhoodRoster

```lua
C_HousingNeighborhood.RequestNeighborhoodRoster()
```

Only available when interacting with a bulletin board game object

### C_HousingNeighborhood.RequestPendingNeighborhoodInvites

```lua
C_HousingNeighborhood.RequestPendingNeighborhoodInvites()
```

Only available when interacting with a bulletin board game object

### C_HousingNeighborhood.TransferNeighborhoodOwnership

```lua
C_HousingNeighborhood.TransferNeighborhoodOwnership(playerGUID)
```

Only available when interacting with a bulletin board game object

Arguments:
- `playerGUID`: WOWGUID

### C_HousingNeighborhood.TryEvictPlayer

```lua
C_HousingNeighborhood.TryEvictPlayer(plotID)
```

Only available when interacting with a bulletin board game object

Arguments:
- `plotID`: number

### C_HousingNeighborhood.TryMoveHouse

```lua
C_HousingNeighborhood.TryMoveHouse()
```

Only available when interacting with a cornerstone game object

### C_HousingNeighborhood.TryPurchasePlot

```lua
C_HousingNeighborhood.TryPurchasePlot()
```

Only available when interacting with a cornerstone game object

## Events

### CANCEL_NEIGHBORHOOD_INVITE_RESPONSE

Payload, after the event's name:
- `result`: NeighborhoodInviteResult
- `playerName`: cstring, may be nil

### CLOSE_PLOT_CORNERSTONE

No payload.

### NEIGHBORHOOD_INFO_UPDATED

Payload, after the event's name:
- `neighborhoodInfo`: NeighborhoodInfo

### NEIGHBORHOOD_INVITE_RESPONSE

Payload, after the event's name:
- `result`: NeighborhoodInviteResult

### NEIGHBORHOOD_MAP_DATA_UPDATED

No payload.

### NEIGHBORHOOD_NAME_UPDATED

Payload, after the event's name:
- `neighborhoodGuid`: WOWGUID
- `neighborhoodName`: cstring

### OPEN_PLOT_CORNERSTONE

No payload.

### PENDING_NEIGHBORHOOD_INVITES_RECIEVED

Payload, after the event's name:
- `result`: NeighborhoodInviteResult
- `pendingInviteList`: string[], may be nil

### PURCHASE_PLOT_RESULT

Payload, after the event's name:
- `result`: number

### SHOW_PLAYER_EVICTED_DIALOG

No payload.

### UPDATE_BULLETIN_BOARD_MEMBER_TYPE

Payload, after the event's name:
- `player`: WOWGUID
- `residentType`: ResidentType

### UPDATE_BULLETIN_BOARD_ROSTER

Payload, after the event's name:
- `neighborhoodInfo`: NeighborhoodInfo
- `rosterMemberList`: NeighborhoodRosterMemberInfo[]

### UPDATE_BULLETIN_BOARD_ROSTER_STATUSES

Payload, after the event's name:
- `rosterMemberList`: NeighborhoodRosterMemberUpdateInfo[]

## Tables

### Enum.CornerstonePurchaseMode (enumeration)

- `Basic` = 0
- `Import` = 1
- `Move` = 2

---
Make an addon with your 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."
