Package com.xpdustry.distributor.api
Interface Distributor
public interface Distributor
The distributor API.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Distributorget()Returns the globalDistributorinstance.Returns the audience provider.Returns the component renderer provider.Returns the event bus.Returns the global translation source.Returns the component decoder.Returns the player lookup.Returns the player permission provider.Returns the plugin scheduler.Returns the service manager.static voidset(@Nullable Distributor distributor) Sets the globalDistributorinstance.
-
Method Details
-
get
Returns the globalDistributorinstance.- Throws:
NullPointerException- if the API hasn't been initialized yet
-
set
Sets the globalDistributorinstance.- 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.
-