Class ModIntegrations

java.lang.Object
net.frozenblock.lib.integration.api.ModIntegrations

public final class ModIntegrations extends Object
  • Method Details

    • register

      public static ModIntegrationSupplier<? extends ModIntegration> register(Supplier<? extends ModIntegration> integration, String srcModID, String modID)
      Registers a mod integration class
      Parameters:
      integration - The mod integration class to register
      srcModID - The id of the mod registering the mod integration
      modID - The id of the mod being integrated
      Returns:
      A ModIntegrationSupplier.
    • register

      public static <T extends ModIntegration> ModIntegrationSupplier<T> register(Supplier<T> integration, Supplier<T> unloadedIntegration, String srcModID, String modID)
      Registers a mod integration class
      Parameters:
      integration - The mod integration class to register
      unloadedIntegration - The integration to use when the mod is unloaded
      srcModID - The id of the mod registering the mod integration
      modID - The id of the mod being integrated
      Returns:
      A ModIntegrationSupplier.
    • getIntegrationSuppliers

      public static List<ModIntegrationSupplier<?>> getIntegrationSuppliers()
    • initializePreFreeze

      public static void initializePreFreeze()
      Runs prior to registries freezing in order to allow for the registering of things.
    • initialize

      public static void initialize()
      Initialize all mod integrations.