Interface StealABlockAddon


public interface StealABlockAddon
Optional lifecycle interface that third-party plugins may implement on their main JavaPlugin class (or register via AddonRegistry) to receive automatic callbacks when StealABlock initializes or reloads.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onApiReady(@NotNull StealABlockAPI api)
    Called once StealABlock is fully loaded and ready to accept registrations.
    default void
    Called whenever StealABlock configurations are reloaded via /sab reload.
  • Method Details

    • onApiReady

      void onApiReady(@NotNull @NotNull StealABlockAPI api)
      Called once StealABlock is fully loaded and ready to accept registrations.
      Parameters:
      api - the active StealABlock API instance
    • onStealABlockReload

      default void onStealABlockReload(@NotNull @NotNull StealABlockAPI api)
      Called whenever StealABlock configurations are reloaded via /sab reload.
      Parameters:
      api - the active StealABlock API instance