Class ModuleInfo
java.lang.Object
enterprises.iwakura.modularbot.objects.ModuleInfo
Module info
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ModuleInfocreateInternalModuleInfo(@NonNull String name, @NonNull String author, @NonNull String version, boolean sigewineRequired, @NonNull String[] depend, @NonNull String[] softDepend, @NonNull String[] loadBefore, @NonNull String[] exceptionHandlingPackages) CreatesModuleInfofor internal usestatic ModuleInfocreateInternalModuleInfo(String name, String author, String version) CreatesModuleInfofor internal usestatic ModuleInfoloadFromJsonObject(com.google.gson.JsonObject jsonObject) LoadsModuleInfofromJsonObject
-
Constructor Details
-
ModuleInfo
public ModuleInfo()
-
-
Method Details
-
createInternalModuleInfo
CreatesModuleInfofor internal use- Parameters:
name- Module nameauthor- Module authorversion- Module version- Returns:
ModuleInfo
-
createInternalModuleInfo
public static ModuleInfo createInternalModuleInfo(@NonNull @NonNull String name, @NonNull @NonNull String author, @NonNull @NonNull String version, boolean sigewineRequired, @NonNull @NonNull String[] depend, @NonNull @NonNull String[] softDepend, @NonNull @NonNull String[] loadBefore, @NonNull @NonNull String[] exceptionHandlingPackages) CreatesModuleInfofor internal use- Parameters:
name- Module nameauthor- Module authorversion- Module versiondepend- Module dependenciessoftDepend- Module soft dependenciesloadBefore- Module load beforeexceptionHandlingPackages- Module exception handling packages- Returns:
ModuleInfo
-
loadFromJsonObject
public static ModuleInfo loadFromJsonObject(com.google.gson.JsonObject jsonObject) throws IOException LoadsModuleInfofromJsonObject- Parameters:
jsonObject- Non-nullJsonObject- Returns:
- Non-null
ModuleInfo - Throws:
IOException- If name or mainClass field is missing
-