Interface ProvideServiceEvent.EngineScoped<T>
-
- Type Parameters:
T
- The service to provide.
- All Superinterfaces:
Event
,GenericEvent<T>
,LifecycleEvent
,ProvideServiceEvent<T>
- Enclosing interface:
- ProvideServiceEvent<T>
public static interface ProvideServiceEvent.EngineScoped<T> extends ProvideServiceEvent<T>
Supplies a service that is scoped to the givenEngine
.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 theengine()
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Engine
engine()
Gets theEngine
that is associated with this event.-
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
-
-