ru.whoisamyy.api.plugins.annotations.PluginClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Geometry Dash kernel in java
package ru.whoisamyy.api.plugins.annotations;
import ru.whoisamyy.core.PluginManager;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* This annotation is used to define is class needs to be loaded by {@link PluginManager} or not.
*
* If {@link PluginClass#isMainClass()} is true you need to inherit {@link ru.whoisamyy.api.plugins.Plugin}.
*
* @see ru.whoisamyy.core.PluginManager
* @see PluginManager#initializePlugins()
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface PluginClass {
String pluginName();
boolean isMainClass() default false;
}