Class ServiceUtil

java.lang.Object
vazkii.botania.api.ServiceUtil

public class ServiceUtil extends Object
  • Constructor Details

    • ServiceUtil

      public ServiceUtil()
  • Method Details

    • findService

      public static <T> T findService(Class<T> clazz, @Nullable @Nullable Supplier<T> defaultImpl)
      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.