Interface AddonRegistry


public interface AddonRegistry
Tracks third-party plugins that integrate with StealABlock.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Collection<String>
     
    @NotNull Registration
    register(@NotNull org.bukkit.plugin.Plugin plugin, @NotNull StealABlockAddon addon)
    Explicitly registers an addon callback listener owned by plugin.
    int
    unregisterAll(@NotNull org.bukkit.plugin.Plugin plugin)
    Unregisters all hooks, modifiers, rules, and custom types owned by plugin.
  • Method Details

    • register

      @NotNull @NotNull Registration register(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull StealABlockAddon addon)
      Explicitly registers an addon callback listener owned by plugin.
    • getActiveAddonPlugins

      @NotNull @NotNull Collection<String> getActiveAddonPlugins()
      Returns:
      names of all plugins that currently hold active registrations or addon hooks
    • unregisterAll

      int unregisterAll(@NotNull @NotNull org.bukkit.plugin.Plugin plugin)
      Unregisters all hooks, modifiers, rules, and custom types owned by plugin.
      Returns:
      number of registrations removed