Interface AddonRegistry
public interface AddonRegistry
Tracks third-party plugins that integrate with StealABlock.
-
Method Summary
Modifier and TypeMethodDescription@NotNull Collection<String> @NotNull Registrationregister(@NotNull org.bukkit.plugin.Plugin plugin, @NotNull StealABlockAddon addon) Explicitly registers an addon callback listener owned byplugin.intunregisterAll(@NotNull org.bukkit.plugin.Plugin plugin) Unregisters all hooks, modifiers, rules, and custom types owned byplugin.
-
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 byplugin. -
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 byplugin.- Returns:
- number of registrations removed
-