Class Services

java.lang.Object
se.itssimple.obsidianweave.services.Services

public class Services extends Object
Service loader for platform helpers in Obsidian Weave. Provides access to platform-specific config and item helpers.
  • Field Details

    • PLATFORMHELPER

      public static final IPlatformConfigHelper PLATFORMHELPER
      The platform config helper loaded for the current environment.
    • ITEMHELPER

      public static final IPlatformItemHelper ITEMHELPER
      The platform item helper loaded for the current environment.
  • Constructor Details

    • Services

      public Services()
  • Method Details

    • load

      public static <T> T load(Class<T> clazz)
      Loads a service implementation for the given class.
      Type Parameters:
      T - The type of the service.
      Parameters:
      clazz - The class to load the service for.
      Returns:
      The loaded service implementation.
      Throws:
      NullPointerException - if no implementation is found.