Package-level declarations

Types

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

Represents an area defined by two points in pixel coordinates.

Link copied to clipboard
class AreaEnterEvent(val area: Area, val player: Player) : AreaEvent
Link copied to clipboard
abstract class AreaEvent(val area: Area) : Event, Cancellable
Link copied to clipboard
class AreaLeaveEvent(val area: Area, val player: Player) : AreaEvent
Link copied to clipboard
abstract class BooleanStatusChangedEvent(var newValue: Boolean) : Event, Cancellable
Link copied to clipboard
data class VentureLocation(val x: Double, val y: Double, val z: Double, val yaw: Float, val pitch: Float, val world: String, val server: String)

Properties

Link copied to clipboard

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

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Gets the area that contains the pixel location.

fun Location.getArea(): Area?

Returns the area that contains this location.

Link copied to clipboard

Checks if the current pixel location is within any of the areas in the cache.

fun Location.isInArea(): Boolean

Checks if the current location is inside any area defined in the area cache.

Determines whether a pixel location is within the given area.

fun Location.isInArea(area: Area): Boolean

Checks if the given location is within the specified area.

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.

Link copied to clipboard
Link copied to clipboard