Package net.neoforged.fml.loading
Class FMLLoader.LaunchContextAdapter
java.lang.Object
net.neoforged.fml.loading.FMLLoader.LaunchContextAdapter
- All Implemented Interfaces:
ILaunchContext
- Enclosing class:
FMLLoader
-
Field Summary
Fields inherited from interface net.neoforged.neoforgespi.ILaunchContext
LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddLocated(Path path) Marks a path as being located and returns true if it was not previously located.The game directory.net.neoforged.api.distmarker.DistbooleanChecks if a given path was already found by a previous locator, or may be already loaded.<T> Stream<ServiceLoader.Provider<T>> loadServices(Class<T> serviceClass)
-
Constructor Details
-
LaunchContextAdapter
private LaunchContextAdapter()
-
-
Method Details
-
getRequiredDistribution
public net.neoforged.api.distmarker.Dist getRequiredDistribution()- Specified by:
getRequiredDistributionin interfaceILaunchContext
-
gameDirectory
Description copied from interface:ILaunchContextThe game directory.- Specified by:
gameDirectoryin interfaceILaunchContext
-
loadServices
- Specified by:
loadServicesin interfaceILaunchContext
-
isLocated
Description copied from interface:ILaunchContextChecks if a given path was already found by a previous locator, or may be already loaded.- Specified by:
isLocatedin interfaceILaunchContext
-
addLocated
Description copied from interface:ILaunchContextMarks a path as being located and returns true if it was not previously located.- Specified by:
addLocatedin interfaceILaunchContext
-
getVersions
- Specified by:
getVersionsin interfaceILaunchContext
-