Quilt Loader 1
Loading...
Searching...
No Matches
net.fabricmc.loader.FabricLoader Class Referenceabstract

The main class for mod loading operations. More...

Inheritance diagram for net.fabricmc.loader.FabricLoader:
net.fabricmc.loader.api.FabricLoader net.fabricmc.loader.impl.FabricLoaderImpl

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< ModContainergetModContainers ()
List< ModContainergetMods ()
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< ModContainergetModContainer (String id)
 Gets the container for a given mod.
Optional< ModContainerquilt_getModContainer (Class<?> clazz)
 Provided to make it easier to call QuiltLoader#getModContainer(Class) via reflection for fabric-only mods.
Collection< ModContainergetAllMods ()
 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.

Detailed Description

The main class for mod loading operations.

Deprecated
Use net.fabricmc.loader.api.FabricLoader

Member Function Documentation

◆ getEntrypoints()

abstract< T > List< T > net.fabricmc.loader.FabricLoader.getEntrypoints ( String key,
Class< T > type )
abstract

Returns all entrypoints declared under a key, assuming they are of a specific type.

Parameters
keythe key in entrypoint declaration in fabric.mod.json
typethe type of entrypoints
<T>the type of entrypoints
Returns
the obtained entrypoints
See also
#getEntrypointContainers(String, Class)

Implements net.fabricmc.loader.api.FabricLoader.

Member Data Documentation

◆ INSTANCE

final FabricLoader net.fabricmc.loader.FabricLoader.INSTANCE = FabricLoaderImpl.InitHelper.get()
static
Deprecated
Use net.fabricmc.loader.api.FabricLoader#getInstance() where possible, report missing areas as an issue.

The documentation for this class was generated from the following file:
  • src/fabric/legacy/java/net/fabricmc/loader/FabricLoader.java