Class ModIntegrations
java.lang.Object
net.frozenblock.lib.integration.api.ModIntegrations
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<ModIntegrationSupplier<?>>static voidInitialize all mod integrations.static voidRuns prior to registries freezing in order to allow for the registering of things.static ModIntegrationSupplier<? extends ModIntegration>register(Supplier<? extends ModIntegration> integration, String srcModID, String modID) Registers a mod integration classstatic <T extends ModIntegration>
ModIntegrationSupplier<T>Registers a mod integration class
-
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 registersrcModID- The id of the mod registering the mod integrationmodID- 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 registerunloadedIntegration- The integration to use when the mod is unloadedsrcModID- The id of the mod registering the mod integrationmodID- The id of the mod being integrated- Returns:
- A
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.
-