Package net.kyori.adventure.util
Class Services
java.lang.Object
net.kyori.adventure.util.Services
public final class Services extends Object
Tools for working with
ServiceLoader
s.- Since:
- 4.8.0
-
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
-