Companion

object Companion

Properties

Link copied to clipboard
@ApiStatus.Internal
val EMPTY: TriggerDataHolder

This is an empty TriggerDataHolder. It is used internally to create an undiscovered trigger.

Functions

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

Does the same thing as the public constructor, but creates the methods from strings. If the method has not been found, skips the entry entirely. eventType is the type of the trigger event and methods are the methods, encapsulated in pairs of DataRetrievalType and String.