java.lang.Object
com.glektarssza.expandedgamerules.platform.Services

public final class Services extends Object
Common mod service loader.
  • Field Details

    • PLATFORM

      public static final IPlatformHelper PLATFORM
      The platform helper.
  • Constructor Details

    • Services

      public Services()
  • Method Details

    • load

      public static <T> T load(Class<T> clazz)
      Load a platform-specific service implementation.
      Type Parameters:
      T - The type of service to load.
      Parameters:
      clazz - The service class to load the platform-specific implementation for.
      Returns:
      The loaded service implementation.