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. Joined dispatch is used for joined listeners or cancellable events when the event is joinable (or its name is configured as joinable); joined callbacks are awaited.Parameters:
event: event to dispatch