EventCustom

abstract class EventCustom : Event

A custom event class that extends Event.

This class allows the addition of metadata to the event and provides utility methods to set, get, check, and remove metadata. It is meant to be subclassed for specific custom event implementations.

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
@NotNull
open fun getEventName(): String
Link copied to clipboard
open override fun getHandlers(): HandlerList

Returns the HandlerList associated with this event.

Link copied to clipboard
fun <T> getMeta(key: String): T?

Retrieves the value of the metadata for a specific key.

Link copied to clipboard

Checks if a metadata key exists.

Link copied to clipboard
Link copied to clipboard

Returns the set of all metadata keys.

Link copied to clipboard

Removes the metadata associated with a specific key.

Link copied to clipboard
fun <T> setMeta(key: String, value: T): EventCustom

Sets a value for the metadata with a specific key.