Class Services
java.lang.Object
net.kyori.adventure.util.Services
-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
service
Locates a service.- Type Parameters:
P- the service type- Parameters:
type- the service type- Returns:
- a service, or
Optional.empty() - Since:
- 4.8.0
-
serviceWithFallback
Locates a service.If multiple services of this type exist, the first non-fallback service will be returned.
- Type Parameters:
P- the service type- Parameters:
type- the service type- Returns:
- a service, or
Optional.empty() - Since:
- 4.14.0
- See Also:
-
services
-