Class ParticleNativePlugin
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
com.github.fierioziy.particlenativeapi.plugin.ParticleNativePlugin
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor,org.bukkit.plugin.Plugin
Deprecated.
it is better to shade lib internally (directly or by your core plugin)
than having version conflicts with other plugins referencing this jar.
A main JavaPlugin instance.
It is responsible for providing class implementation for
particle type list. If any error occurs during class
generation, an isValid method will return false
and any API access to this instance will
throw ParticleException.
Therefore, before accessing any particles list you must
check, if plugin API is valid
by a isValid method call.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.github.fierioziy.particlenativeapi.api.ParticleNativeAPIgetAPI()Deprecated.Gets underlying particle API generated by a plugin.static ParticleNativePluginDeprecated.Gets this plugin's instancestatic booleanisValid()Deprecated.Checks if an API has been properly generated and is ready for use.voidDeprecated.voidonEnable()Deprecated.voidonLoad()Deprecated.Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onCommand, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
-
Constructor Details
-
ParticleNativePlugin
public ParticleNativePlugin()Deprecated.
-
-
Method Details
-
onLoad
public void onLoad()Deprecated.- Specified by:
onLoadin interfaceorg.bukkit.plugin.Plugin- Overrides:
onLoadin classorg.bukkit.plugin.java.JavaPlugin
-
onEnable
public void onEnable()Deprecated.- Specified by:
onEnablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onEnablein classorg.bukkit.plugin.java.JavaPlugin
-
onDisable
public void onDisable()Deprecated.- Specified by:
onDisablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onDisablein classorg.bukkit.plugin.java.JavaPlugin
-
getPlugin
Deprecated.Gets this plugin's instance
- Returns:
- a
ParticleNativePlugininstance.
-
getAPI
public static com.github.fierioziy.particlenativeapi.api.ParticleNativeAPI getAPI()Deprecated.Gets underlying particle API generated by a plugin.
- Returns:
- a
ParticleNativeAPIinstance. - Throws:
com.github.fierioziy.particlenativeapi.api.utils.ParticleException- if error occurred during class generation.
-
isValid
public static boolean isValid()Deprecated.Checks if an API has been properly generated and is ready for use.
- Returns:
- true if API has been successfully created, false otherwise.
-