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 public class ParticleNativePlugin extends org.bukkit.plugin.java.JavaPlugin
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
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.github.fierioziy.particlenativeapi.api.ParticleNativeAPI
    Deprecated.
    Gets underlying particle API generated by a plugin.
    Deprecated.
    Gets this plugin's instance
    static boolean
    Deprecated.
    Checks if an API has been properly generated and is ready for use.
    void
    Deprecated.
     
    void
    Deprecated.
     
    void
    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, toString

    Methods inherited from class org.bukkit.plugin.PluginBase

    equals, getName, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ParticleNativePlugin

      public ParticleNativePlugin()
      Deprecated.
  • Method Details

    • onLoad

      public void onLoad()
      Deprecated.
      Specified by:
      onLoad in interface org.bukkit.plugin.Plugin
      Overrides:
      onLoad in class org.bukkit.plugin.java.JavaPlugin
    • onEnable

      public void onEnable()
      Deprecated.
      Specified by:
      onEnable in interface org.bukkit.plugin.Plugin
      Overrides:
      onEnable in class org.bukkit.plugin.java.JavaPlugin
    • onDisable

      public void onDisable()
      Deprecated.
      Specified by:
      onDisable in interface org.bukkit.plugin.Plugin
      Overrides:
      onDisable in class org.bukkit.plugin.java.JavaPlugin
    • getPlugin

      public static ParticleNativePlugin getPlugin()
      Deprecated.

      Gets this plugin's instance

      Returns:
      a ParticleNativePlugin instance.
    • getAPI

      public static com.github.fierioziy.particlenativeapi.api.ParticleNativeAPI getAPI()
      Deprecated.

      Gets underlying particle API generated by a plugin.

      Returns:
      a ParticleNativeAPI instance.
      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.