BaseProfile
com.jsmacrosce.jsmacros.core.config.BaseProfile
Manages a core's active profile and the event and library registries initialized for it.
Constructors
new BaseProfile
Fields
joinedThreadStack
LOGGER
profileName
runner
Methods
checkJoinedThreadStack
Reports whether the current thread's joined-event stack permits joined dispatch.
Returns:
true if joined dispatch is permitted for the current threadgetCurrentProfileName
init
loadOrCreateProfile
logError
renameCurrentProfile
saveProfile
Saves the registered script triggers under the current profile name and persists the configuration.
triggerEvent
Dispatches an event to its named listeners and, unless ignored, to
ANYTHING listeners. A listener is joined only when it requests joined handling and the event permits joining; joined callbacks are awaited. A listener that does not request joining receives a read-only delivery that dispatch does not wait for and cannot change the event.Parameters:
event: event to dispatch