Interface ServiceProvider<T>

Type Parameters:
T - the type of the service

public interface ServiceProvider<T>
A service provider, containing information about a service implementation.
  • Method Details

    • getPlugin

      MindustryPlugin getPlugin()
      Returns the plugin providing the service.
    • getService

      TypeToken<T> getService()
      Returns the service type.
    • getInstance

      T getInstance()
      Returns the service instance.
    • getPriority

      Priority getPriority()
      Returns the priority of the service.