mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-27 21:12:58 +08:00
20 lines
586 B
Java
20 lines
586 B
Java
package emu.grasscutter.plugin;
|
|
|
|
/** The data contained in the plugin's `plugin.json` file. */
|
|
public final class PluginConfig {
|
|
public String name, description, version;
|
|
public String mainClass;
|
|
public String[] authors;
|
|
public String[] loadAfter;
|
|
|
|
/**
|
|
* Attempts to validate this config instance.
|
|
*
|
|
* @return True if the config is valid, false otherwise.
|
|
*/
|
|
@SuppressWarnings("BooleanMethodIsAlwaysInverted")
|
|
public boolean validate() {
|
|
return name != null && description != null && mainClass != null;
|
|
}
|
|
}
|