Interface ProvideServiceEvent.EngineScoped<T>
- Type Parameters:
T
- The service to provide.
- All Superinterfaces:
Event
,GenericEvent<T>
,LifecycleEvent
,ProvideServiceEvent<T>
- Enclosing interface:
ProvideServiceEvent<T>
Supplies a service that is scoped to the given
Engine
.
Engine scoped services have a lifetime of the attached Engine. If the engine is restarted, plugins will be asked to provide a new service.
It is up to the provider to determine which engine a service is to be
supplied for. Services that are engine scoped may not support all
engines. Plugins can check to see what Engine
the service will
be provided for via the engine()
method, and can choose to
forgo providing a service based on this information.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.event.lifecycle.ProvideServiceEvent
ProvideServiceEvent.EngineScoped<T>, ProvideServiceEvent.GameScoped<T>
-
Method Summary
Methods inherited from interface org.spongepowered.api.event.GenericEvent
paramType
Methods inherited from interface org.spongepowered.api.event.lifecycle.LifecycleEvent
game
Methods inherited from interface org.spongepowered.api.event.lifecycle.ProvideServiceEvent
suggest