Package org.spongepowered.api.service
Interface ServiceProvider.ServerScoped
- All Superinterfaces:
ServiceProvider
- Enclosing interface:
ServiceProvider
Provides serivces that are scoped to the
ServiceProvider.ServerScoped
Engine
only.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.service.ServiceProvider
ServiceProvider.GameScoped, ServiceProvider.ServerScoped
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves theBanService
.Retrieves theContextService
, if it exists.Retrieves theEconomyService
, if it exists.Retrieves thePermissionService
.Retrieves theWhitelistService
.Methods inherited from interface org.spongepowered.api.service.ServiceProvider
provide, registration
-
Method Details
-
banService
BanService banService()Retrieves theBanService
.- Returns:
- The
BanService
-
contextService
ContextService contextService()Retrieves theContextService
, if it exists.- Returns:
- The
ContextService
-
economyService
Optional<EconomyService> economyService()Retrieves theEconomyService
, if it exists.- Returns:
- The
EconomyService
.
-
permissionService
PermissionService permissionService()Retrieves thePermissionService
.- Returns:
- The
PermissionService
-
whitelistService
WhitelistService whitelistService()Retrieves theWhitelistService
.- Returns:
- The
WhitelistService
-