|
Quilt Loader 1
|
The main class for mod loading operations. More...
Public Member Functions | |
| File | getModsDirectory () |
| abstract< T > List< T > | getEntrypoints (String key, Class< T > type) |
Returns all entrypoints declared under a key, assuming they are of a specific type. | |
| Collection< ModContainer > | getModContainers () |
| List< ModContainer > | getMods () |
| void | prepareModInit (File runDir, Object gameInstance) |
| Public Member Functions inherited from net.fabricmc.loader.api.FabricLoader | |
| < T > List< EntrypointContainer< T > > | getEntrypointContainers (String key, Class< T > type) |
Returns all entrypoints declared under a key, assuming they are of a specific type. | |
| < T > void | invokeEntrypoints (String key, Class< T > type, Consumer<? super T > invoker) |
Invokes an action on all entrypoints that would be returned by getEntrypointContainers(String, Class) for the given key and type. | |
| ObjectShare | getObjectShare () |
| Get the object share for inter-mod communication. | |
| MappingResolver | getMappingResolver () |
| Get the current mapping resolver. | |
| Optional< ModContainer > | getModContainer (String id) |
| Gets the container for a given mod. | |
| Optional< ModContainer > | quilt_getModContainer (Class<?> clazz) |
Provided to make it easier to call QuiltLoader#getModContainer(Class) via reflection for fabric-only mods. | |
| Collection< ModContainer > | getAllMods () |
| Gets all mod containers. | |
| boolean | isModLoaded (String id) |
| Checks if a mod with a given ID is loaded. | |
| boolean | isDevelopmentEnvironment () |
| Checks if Fabric Loader is currently running in a "development" environment. | |
| EnvType | getEnvironmentType () |
| Get the current environment type. | |
| String | getRawGameVersion () |
| Get the original unprocessed game version. | |
| Object | getGameInstance () |
| Get the current game instance. | |
| Path | getGameDir () |
| Get the current game working directory. | |
| File | getGameDirectory () |
| Path | getConfigDir () |
| Get the current directory for game configuration files. | |
| File | getConfigDirectory () |
| String[] | getLaunchArguments (boolean sanitize) |
| Gets the command line arguments used to launch the game. | |
Static Public Attributes | |
| static final FabricLoader | INSTANCE = FabricLoaderImpl.InitHelper.get() |
Additional Inherited Members | |
| Static Public Member Functions inherited from net.fabricmc.loader.api.FabricLoader | |
| static FabricLoader | getInstance () |
| Returns the public-facing Fabric Loader instance. | |
The main class for mod loading operations.
|
abstract |
Returns all entrypoints declared under a key, assuming they are of a specific type.
| key | the key in entrypoint declaration in fabric.mod.json |
| type | the type of entrypoints |
| <T> | the type of entrypoints |
Implements net.fabricmc.loader.api.FabricLoader.
|
static |
net.fabricmc.loader.api.FabricLoader#getInstance() where possible, report missing areas as an issue.