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 Details

    • AnimatedArchitecturePlugin

      public AnimatedArchitecturePlugin()
  • Method Details

    • getAnimatedArchitectureSpigotPlatform

      public Optional<AnimatedArchitectureSpigotPlatform> getAnimatedArchitectureSpigotPlatform(org.bukkit.plugin.java.JavaPlugin javaPlugin)
      Gets the IAnimatedArchitecturePlatform implementation for Spigot.
      Parameters:
      javaPlugin - The plugin requesting access.
      Returns:
      The AnimatedArchitectureSpigotPlatform if it was initialized properly.
    • getRegisteredPlugins

      public Set<org.bukkit.plugin.java.JavaPlugin> 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:
      onEnable in interface org.bukkit.plugin.Plugin
      Overrides:
      onEnable in class org.bukkit.plugin.java.JavaPlugin
    • onDisable

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

      public ClassLoader getPluginClassLoader()
    • getPlatform

      public Optional<IAnimatedArchitecturePlatform> getPlatform()
      Description copied from interface: IAnimatedArchitecturePlatformProvider
      Gets the platform loaded on the server.

      This method may return an empty Optional if 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:
      getPlatform in interface IAnimatedArchitecturePlatformProvider
      Returns:
      An Optional containing the platform if it is available.
    • restart

      public void restart()
    • getInitErrorMessage

      @Nullable public @Nullable String getInitErrorMessage()