Class NeoforgeModuleAccess
java.lang.Object
mods.thecomputerizer.theimpossiblelibrary.neoforge.core.modules.NeoforgeModuleAccess
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcalculateLayerName(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleLayerAccess layer) If the name is not set, this can be used to find it and set itstatic StringcalculateLayerName(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleLayerAccess moduleLayer, cpw.mods.modlauncher.api.IModuleLayerManager.Layer... validLayers) If the name is not set, this can be used to find it and set itstatic voidcombineModules(cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer, URI combinedLocation, String combinedName, String base, String... others) static StringfindConfigurationLayerName(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ConfigurationAccess configuration) static cpw.mods.modlauncher.api.IModuleLayerManager.LayerfindMatchingLayer(ClassLoader loader) static mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleAccessfindModuleInAnyLayer(String moduleName) static mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleAccessfindModuleInLayer(String moduleName, cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer) static mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleAccessfindModuleInLayerNoError(String moduleName, cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer) Find a module in the given layer without logging an error when the module is absentstatic mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleAccessfindModuleInLayers(String moduleName, cpw.mods.modlauncher.api.IModuleLayerManager.Layer... layers) static mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccessfindResolvedModuleIn(String moduleName, cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer) static EnvironmentAccessstatic EnvironmentAccessgetEnvironment(Object accessorOrLogger) static EnvironmentAccessgetEnvironment(Object environment, Object accessorOrLogger) static JarMetadataAccessgetJarMetadata(Object jarMetadata, Object accessorOrLogger) static LauncherAccessstatic LauncherAccessgetLauncher(Object accessorOrLogger) static ClassLoadergetLayerClassLoader(cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer, Object accessorOrLogger) static cpw.mods.modlauncher.api.IModuleLayerManager.LayergetLayerFromName(String layerName) static LayerInfoAccessgetLayerInfo(cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer) static LayerInfoAccessgetLayerInfo(cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer, Object accessorOrLogger) static LayerInfoAccessgetLayerInfo(Object layerInfo, Object accessorOrLogger) static ModFileAccessgetModFile(Object modFile, Object accessorOrLogger) static mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleAccessstatic ModuleClassLoaderAccessgetModuleClassLoader(@Nullable cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer) static ModuleClassLoaderAccessgetModuleClassLoader(@Nullable cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer, Object accessorOrLogger) static ModuleClassLoaderAccessgetModuleClassLoader(ClassLoader loader) static ModuleClassLoaderAccessgetModuleClassLoader(ClassLoader loader, cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer) Get a ModuleClassLoaderAccess with the input layer name already setstatic ModuleClassLoaderAccessgetModuleClassLoader(ClassLoader loader, Object accessorOrLogger) static mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleLayerAccessgetModuleLayer(cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer) static mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleLayerAccessgetModuleLayer(cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer, Object accessorOrLogger) static mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleLayerAccessgetModuleLayer(Object moduleLayer) static ModuleLayerHandlerAccessstatic ModuleLayerHandlerAccessgetModuleLayerHandler(Object accessorOrLogger) static ModuleLayerHandlerAccessgetModuleLayerHandler(Object moduleLayerHandler, Object accessorOrLogger) static StringgetModuleLayerName(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleAccess module) static SecureJarAccessgetSecureJar(Object secureJar, Object accessorOrLogger) static SecureJarProviderAccessgetSecureJarProvider(Object provider) static SecureJarProviderAccessgetSecureJarProvider(Object provider, Object accessorOrLogger) static voidmoveModule(cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer, cpw.mods.modlauncher.api.IModuleLayerManager.Layer targetLayer, String moduleName, boolean moveClasses) static voidmoveModule(ModuleClassLoaderAccess sourceLoader, ModuleClassLoaderAccess targetLoader, String moduleName, boolean moveClasses) static voidmoveModule(ModuleClassLoaderAccess sourceLoader, ModuleClassLoaderAccess targetLoader, mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccess module, boolean moveClasses) static voidmoveModuleToLayer(ModuleClassLoaderAccess sourceLoader, ModuleClassLoaderAccess targetLoader, mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleAccess module, boolean moveClasses) static voidprintConfigurationGraph(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ConfigurationAccess configuration) static voidprintConfigurationGraph(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ConfigurationAccess configuration, boolean printParents) static voidremoveResolvedModule(cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer, String moduleName) static voidremoveResolvedModules(cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer, String... moduleNames) static voidremoveResolvedModules(Collection<cpw.mods.modlauncher.api.IModuleLayerManager.Layer> layers, String... moduleNames) static voidrenameModule(cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer, String name, String newName)
-
Constructor Details
-
NeoforgeModuleAccess
public NeoforgeModuleAccess()
-
-
Method Details
-
calculateLayerName
public static String calculateLayerName(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleLayerAccess layer) If the name is not set, this can be used to find it and set it -
calculateLayerName
public static String calculateLayerName(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleLayerAccess moduleLayer, cpw.mods.modlauncher.api.IModuleLayerManager.Layer... validLayers) If the name is not set, this can be used to find it and set it -
combineModules
-
findConfigurationLayerName
public static String findConfigurationLayerName(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ConfigurationAccess configuration) -
findMatchingLayer
public static cpw.mods.modlauncher.api.IModuleLayerManager.Layer findMatchingLayer(ClassLoader loader) -
findModuleInAnyLayer
public static mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleAccess findModuleInAnyLayer(String moduleName) -
findModuleInLayers
public static mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleAccess findModuleInLayers(String moduleName, cpw.mods.modlauncher.api.IModuleLayerManager.Layer... layers) -
findModuleInLayer
public static mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleAccess findModuleInLayer(String moduleName, cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer) -
findModuleInLayerNoError
public static mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleAccess findModuleInLayerNoError(String moduleName, cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer) Find a module in the given layer without logging an error when the module is absent -
findResolvedModuleIn
public static mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccess findResolvedModuleIn(String moduleName, cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer) -
getEnvironment
-
getEnvironment
-
getEnvironment
-
getJarMetadata
-
getLauncher
-
getLauncher
-
getLayerFromName
-
getLayerClassLoader
public static ClassLoader getLayerClassLoader(cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer, Object accessorOrLogger) -
getLayerInfo
public static LayerInfoAccess getLayerInfo(cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer) -
getLayerInfo
public static LayerInfoAccess getLayerInfo(cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer, Object accessorOrLogger) -
getLayerInfo
-
getModFile
-
getModule
public static mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleAccess getModule(Object module) -
getModuleClassLoader
public static ModuleClassLoaderAccess getModuleClassLoader(@Nullable @Nullable cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer) -
getModuleClassLoader
public static ModuleClassLoaderAccess getModuleClassLoader(@Nullable @Nullable cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer, Object accessorOrLogger) -
getModuleClassLoader
-
getModuleClassLoader
public static ModuleClassLoaderAccess getModuleClassLoader(ClassLoader loader, cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer) Get a ModuleClassLoaderAccess with the input layer name already set -
getModuleClassLoader
public static ModuleClassLoaderAccess getModuleClassLoader(ClassLoader loader, Object accessorOrLogger) -
getModuleLayer
public static mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleLayerAccess getModuleLayer(Object moduleLayer) -
getModuleLayer
public static mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleLayerAccess getModuleLayer(cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer) -
getModuleLayer
public static mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleLayerAccess getModuleLayer(cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer, Object accessorOrLogger) -
getModuleLayerHandler
-
getModuleLayerHandler
-
getModuleLayerHandler
public static ModuleLayerHandlerAccess getModuleLayerHandler(Object moduleLayerHandler, Object accessorOrLogger) -
getModuleLayerName
public static String getModuleLayerName(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleAccess module) -
getSecureJar
-
getSecureJarProvider
-
getSecureJarProvider
public static SecureJarProviderAccess getSecureJarProvider(Object provider, Object accessorOrLogger) -
moveModule
public static void moveModule(cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer, cpw.mods.modlauncher.api.IModuleLayerManager.Layer targetLayer, String moduleName, boolean moveClasses) -
moveModule
public static void moveModule(ModuleClassLoaderAccess sourceLoader, ModuleClassLoaderAccess targetLoader, mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccess module, boolean moveClasses) -
moveModule
public static void moveModule(ModuleClassLoaderAccess sourceLoader, ModuleClassLoaderAccess targetLoader, String moduleName, boolean moveClasses) -
moveModuleToLayer
public static void moveModuleToLayer(ModuleClassLoaderAccess sourceLoader, ModuleClassLoaderAccess targetLoader, mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleAccess module, boolean moveClasses) -
printConfigurationGraph
public static void printConfigurationGraph(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ConfigurationAccess configuration) -
printConfigurationGraph
public static void printConfigurationGraph(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ConfigurationAccess configuration, boolean printParents) -
removeResolvedModules
public static void removeResolvedModules(Collection<cpw.mods.modlauncher.api.IModuleLayerManager.Layer> layers, String... moduleNames) -
removeResolvedModules
public static void removeResolvedModules(cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer, String... moduleNames) -
removeResolvedModule
public static void removeResolvedModule(cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer, String moduleName) -
renameModule
-