Package net.neoforged.neoforgespi
Interface ILaunchContext
- All Known Implementing Classes:
FMLLoader.LaunchContextAdapter
public interface ILaunchContext
Provides context for various FML plugins about the current launch operation.
-
Field Summary
Fields -
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)
-
Field Details
-
LOGGER
static final org.slf4j.Logger LOGGER
-
-
Method Details
-
getRequiredDistribution
net.neoforged.api.distmarker.Dist getRequiredDistribution() -
gameDirectory
Path gameDirectory()The game directory. -
loadServices
-
isLocated
Checks if a given path was already found by a previous locator, or may be already loaded. -
addLocated
Marks a path as being located and returns true if it was not previously located. -
getVersions
VersionInfo getVersions()
-