TriggerDataHolder

@Since(version = "2.2")
class TriggerDataHolder

This class helps store RegistrableTrigger's event-related data, such as the event class and its data retrieval methods.

When creating a TriggerDataHolder, make sure to always include a DataRetrievalType.FIRST_PLAYER method.

Since

2.2

Constructors

Link copied to clipboard
@Since(version = "2.2")
constructor(eventType: Class<out Event>, vararg methods: Pair<DataRetrievalType, Method>)

Instantiates a TriggerDataHolder with the given eventType (the type of the trigger event) and methods (the methods, encapsulated in pairs of DataRetrievalType and Method).

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val eventType: Class<out Event>