Class AnimatedArchitecturePlugin
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
nl.pim16aap2.animatedarchitecture.spigot.core.AnimatedArchitecturePlugin
- All Implemented Interfaces:
IAnimatedArchitecturePlatformProvider,org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor,org.bukkit.plugin.Plugin
@Singleton
public final class AnimatedArchitecturePlugin
extends org.bukkit.plugin.java.JavaPlugin
implements IAnimatedArchitecturePlatformProvider
Represents the base
JavaPlugin for AnimatedArchitecture.
This is the entry point of the Spigot platform.
Refer to nl.pim16aap2.animatedarchitecture.spigot.core for more information on how to interact with this
plugin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAnimatedArchitectureSpigotPlatform(org.bukkit.plugin.java.JavaPlugin javaPlugin) Gets theIAnimatedArchitecturePlatformimplementation for Spigot.@Nullable StringGets the platform loaded on the server.Set<org.bukkit.plugin.java.JavaPlugin> Retrieves all the plugins that have requested access to AnimatedArchitecture's internals.voidvoidonEnable()voidrestart()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, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
-
Constructor Details
-
AnimatedArchitecturePlugin
public AnimatedArchitecturePlugin()
-
-
Method Details
-
getAnimatedArchitectureSpigotPlatform
public Optional<AnimatedArchitectureSpigotPlatform> getAnimatedArchitectureSpigotPlatform(org.bukkit.plugin.java.JavaPlugin javaPlugin) Gets theIAnimatedArchitecturePlatformimplementation for Spigot.- Parameters:
javaPlugin- The plugin requesting access.- Returns:
- The
AnimatedArchitectureSpigotPlatformif it was initialized properly.
-
getRegisteredPlugins
Retrieves all the plugins that have requested access to AnimatedArchitecture's internals.- Returns:
- A set of all plugins with access to AnimatedArchitecture.
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onEnablein classorg.bukkit.plugin.java.JavaPlugin
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onDisablein classorg.bukkit.plugin.java.JavaPlugin
-
getPluginClassLoader
-
getPlatform
Description copied from interface:IAnimatedArchitecturePlatformProviderGets the platform loaded on the server.This method may return an empty
Optionalif the platform is not available.The platform can be unavailable if it failed to load or if the server is running an unsupported platform.
- Specified by:
getPlatformin interfaceIAnimatedArchitecturePlatformProvider- Returns:
- An
Optionalcontaining the platform if it is available.
-
restart
public void restart() -
getInitErrorMessage
-