Package ml.karmaconfigs.api.common.karma
Interface KarmaSource
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
APISource
Karma API source
-
Method Summary
Modifier and TypeMethodDescriptiondefault Schedulerasync()Get the source async schedulerString[]authors()Karma source authorsdefault StringGet the authors using a custom separatordefault Consoleconsole()Get the source outKarma source descriptiondefault PathGet the source data pathdefault FileGet the source filedefault booleanisSource(KarmaSource source)Get if the source is an instance of thisname()Karma source namedefault booleansrcEquals(KarmaSource dst)Returns if the specified source is the same as this onedefault voidStop all the source tasksdefault Schedulersync()Get the source sync schedulerKarma source update URLversion()Karma source version
-
Method Details
-
name
String name()Karma source name- Returns:
- the source name
-
version
String version()Karma source version- Returns:
- the source version
-
description
String description()Karma source description- Returns:
- the source description
-
authors
String[] authors()Karma source authors- Returns:
- the source authors
-
updateURL
String updateURL()Karma source update URL- Returns:
- the source update URL
-
stopTasks
default void stopTasks()Stop all the source tasks -
authors
Get the authors using a custom separator- Parameters:
firstSeparator- if the first object should have separatorseparator- the separator- Returns:
- the authors using the separator options
-
getSourceFile
Get the source file- Returns:
- the source file
-
getDataPath
Get the source data path- Returns:
- the source data path
-
isSource
Get if the source is an instance of this- Parameters:
source- the source- Returns:
- if the source is this source
-
console
Get the source out- Returns:
- the source out
-
async
Get the source async scheduler- Returns:
- the source async scheduler
-
sync
Get the source sync scheduler- Returns:
- the source sync scheduler
-
srcEquals
Returns if the specified source is the same as this one- Parameters:
dst- the source to check with- Returns:
- if the source is the same as this
-