Region

interface Region

Represents a region within housing.

A Region provides metadata (name), PvP-related configuration and entry/exit action containers.

Implementations perform sequential behavior and therefore expose suspend functions for better interaction with Housing.

Types

Link copied to clipboard

PvP and damage-related toggleable settings for a region.

Properties

Link copied to clipboard
abstract var name: String

The unique name of the region.

Functions

Link copied to clipboard
abstract suspend fun delete()

Deletes this region.

Link copied to clipboard

Returns the action container executed when a player enters the region.

Link copied to clipboard
abstract suspend fun getExitActionContainer(): ActionContainer

Returns the action container executed when a player exits the region.

Link copied to clipboard
open suspend fun getName(): String

Returns the current region name.

Link copied to clipboard

Returns the PvP-related settings for this region.

Link copied to clipboard
abstract suspend fun moveRegion(): Region

Moves the region bounds. The caller must have a region selected for this to succeed.

Link copied to clipboard
abstract suspend fun setName(newName: String): Region

Sets a new name for the region.

Link copied to clipboard
abstract suspend fun setPvpSettings(newPvpSettings: MutableMap<Region.PvpSettings, Boolean?>): Region

Updates the PvP settings for this region.