Package org.spongepowered.api.service
Interface ServiceRegistration<T>
-
- Type Parameters:
T- The type of service
public interface ServiceRegistration<T>Provides information about the registration of a service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.spongepowered.plugin.PluginContainerpluginContainer()ThePluginContainerthat registered the service.Tservice()The implementation of the service.java.lang.Class<T>serviceClass()AClassthat represents the service that has been implemented.
-
-
-
Method Detail
-
serviceClass
java.lang.Class<T> serviceClass()
AClassthat 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()
ThePluginContainerthat registered the service.- Returns:
- The
PluginContainer
-
-