fromStringMethods

@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.

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

Return

the resulting TriggerDataHolder.