Interface Distributor


public interface Distributor
The distributor API.
  • Method Details

    • get

      static Distributor get()
      Returns the global Distributor instance.
      Throws:
      NullPointerException - if the API hasn't been initialized yet
    • set

      static void set(@Nullable Distributor distributor)
      Sets the global Distributor instance.
      Parameters:
      distributor - the distributor instance
    • getServiceManager

      ServiceManager getServiceManager()
      Returns the service manager. Available on init.
    • getGlobalTranslationSource

      TranslationSource getGlobalTranslationSource()
      Returns the global translation source. Available on init.
    • getEventBus

      EventBus getEventBus()
      Returns the event bus. Available on init.
    • getPluginScheduler

      PluginScheduler getPluginScheduler()
      Returns the plugin scheduler. Available on init.
    • getComponentRendererProvider

      ComponentRendererProvider getComponentRendererProvider()
      Returns the component renderer provider. Available on init.
    • getMindustryComponentDecoder

      ComponentDecoder<String> getMindustryComponentDecoder()
      Returns the component decoder. Available on init.
    • getAudienceProvider

      AudienceProvider getAudienceProvider()
      Returns the audience provider. Available on init.
    • getPlayerPermissionProvider

      PlayerPermissionProvider getPlayerPermissionProvider()
      Returns the player permission provider. Available on load.
    • getPlayerLookup

      PlayerLookup getPlayerLookup()
      Returns the player lookup. Available on load.