Package vazkii.botania.api
Class ServiceUtil
java.lang.Object
vazkii.botania.api.ServiceUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TfindService(Class<T> clazz, @Nullable Supplier<T> defaultImpl)
-
Constructor Details
-
ServiceUtil
public ServiceUtil()
-
-
Method Details
-
findService
- Parameters:
defaultImpl- If nonnull, will be used as a default if no implementations were found. Otherwise if it is null and no implementations were found, this method will throw.
-