Area

class Area(val name: String, val point1: VentureLocation, val point2: VentureLocation, val chatRoomType: String = "<color:#7593ff>ChatRoom")(source)

Represents an area defined by two points in pixel coordinates.

Constructors

Link copied to clipboard
constructor(name: String, point1: VentureLocation, point2: VentureLocation, chatRoomType: String = "<color:#7593ff>ChatRoom")

Properties

Link copied to clipboard

Returns the name of the chat room associated with the area.

Link copied to clipboard
Link copied to clipboard

The name of the area.

Link copied to clipboard

The first pixel location defining the area.

Link copied to clipboard

The second pixel location defining the area.

Functions

Link copied to clipboard
fun contains(location: Location): Boolean
Link copied to clipboard
fun Area.onEnter(player: Player)

Executes when a player enters the area.

Link copied to clipboard
fun Area.onLeave(player: Player)

Triggers when a player leaves an area.