public class ParticleNativeAPI
extends org.bukkit.plugin.java.JavaPlugin
A main JavaPlugin instance.
It is responsible for providing class implementation for
particle type list. If any error occurs during class
generation, a isValid method will return false
and any API access to this instance will
throw IllegalStateException.
Therefore, before accessing any particles list you must
check, if plugin API is valid
by a isValid method call.
| Constructor and Description |
|---|
ParticleNativeAPI() |
| Modifier and Type | Method and Description |
|---|---|
Particles_1_13 |
getParticles_1_13()
Gets instance of interface holding particle types
since 1.13.
|
Particles_1_8 |
getParticles_1_8()
Gets instance of interface holding particle types
prior to 1.13.
|
static ParticleNativeAPI |
getPlugin()
Gets this plugin's instance
|
ServerConnection |
getServerConnection()
Deprecated.
use any particle list instead, it contains exact same functionality.
|
boolean |
isValid()
Checks if an API has been properly generated and
is ready for use.
|
void |
onDisable() |
void |
onEnable() |
void |
onLoad() |
getClassLoader, getCommand, getConfig, getDatabase, getDatabaseClasses, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, initialize, installDDL, isEnabled, isInitialized, isNaggable, onCommand, onTabComplete, reloadConfig, removeDDL, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringpublic void onLoad()
onLoad in interface org.bukkit.plugin.PluginonLoad in class org.bukkit.plugin.java.JavaPluginpublic void onEnable()
onEnable in interface org.bukkit.plugin.PluginonEnable in class org.bukkit.plugin.java.JavaPluginpublic void onDisable()
onDisable in interface org.bukkit.plugin.PluginonDisable in class org.bukkit.plugin.java.JavaPluginpublic static ParticleNativeAPI getPlugin()
Gets this plugin's instance
ParticleNativeAPI plugin's instance.public boolean isValid()
public Particles_1_8 getParticles_1_8()
Gets instance of interface holding particle types prior to 1.13.
All particle list interfaces holds same particle types where possible (for ex. FLAME particle from this instance should also be present in other particle list version if it is same particle type or if particle type handling haven't changed significantly.
You should check if API has been successfully generated
using isValid method.
Otherwise, this method might throw IllegalStateException if class
generation failed.
Particles_1_8 instance.java.lang.IllegalStateException - if error occured during class generation.public Particles_1_13 getParticles_1_13()
Gets instance of interface holding particle types since 1.13.
All particle list interfaces holds same particle types where possible (for ex. FLAME particle from this instance should also be present in other particle list version if it is same particle type or if particle type handling haven't changed significantly.
You should check if API has been successfully generated
using isValid method.
Otherwise, this method will throw IllegalStateException if class
generation failed.
Particles_1_13 instance.java.lang.IllegalStateException - if error occured during class generation.@Deprecated public ServerConnection getServerConnection()
Gets instance of ServerConnection.
You should check if API has been successfully generated
using isValid method.
Otherwise, this method will throw IllegalStateException if class
generation failed.
ServerConnection instance.java.lang.IllegalStateException - if error occured during class generation.Copyright © 2020. All Rights Reserved.