Interface ServiceRegistration<T>

Type Parameters:
T - The type of service

public interface ServiceRegistration<T>
Provides information about the registration of a service.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.spongepowered.plugin.PluginContainer
    The PluginContainer that registered the service.
    The implementation of the service.
    A Class that represents the service that has been implemented.
  • Method Details

    • serviceClass

      Class<T> serviceClass()
      A Class that represents the service that has been implemented.
      Returns:
      A Class
    • service

      T service()
      The implementation of the service.
      Returns:
      The implementation
    • pluginContainer

      org.spongepowered.plugin.PluginContainer pluginContainer()
      The PluginContainer that registered the service.
      Returns:
      The PluginContainer