|
Quilt Loader 1
|
Representation of the various locations a mod was loaded from originally. More...
Classes | |
| enum | Kind |
Non-exhaustive list of possible ModOrigin kinds. More... | |
Public Member Functions | |
| Kind | getKind () |
| Get the kind of this origin, determines the available methods. | |
| List< Path > | getPaths () |
Get the jar or folder paths for a Kind#PATH origin. | |
| String | getParentModId () |
Get the parent mod for a Kind#NESTED origin. | |
| String | getParentSubLocation () |
Get the sub-location within the parent mod for a Kind#NESTED origin. | |
Representation of the various locations a mod was loaded from originally.
This location is not necessarily identical to the code source used at runtime, a mod may get copied or otherwise transformed before being put on the class path. It thus mostly represents the installation and initial loading, not what is being directly accessed at runtime.
ModContainer#getSourcePaths() can be used to obtain the origin paths. | Kind net.fabricmc.loader.api.metadata.ModOrigin.getKind | ( | ) |
Get the kind of this origin, determines the available methods.
Implemented in net.fabricmc.loader.impl.metadata.ModOriginImpl.
| String net.fabricmc.loader.api.metadata.ModOrigin.getParentModId | ( | ) |
Get the parent mod for a Kind#NESTED origin.
| UnsupportedOperationException | for incompatible kinds |
Implemented in net.fabricmc.loader.impl.metadata.ModOriginImpl.
| String net.fabricmc.loader.api.metadata.ModOrigin.getParentSubLocation | ( | ) |
Get the sub-location within the parent mod for a Kind#NESTED origin.
| UnsupportedOperationException | for incompatible kinds |
Implemented in net.fabricmc.loader.impl.metadata.ModOriginImpl.
| List< Path > net.fabricmc.loader.api.metadata.ModOrigin.getPaths | ( | ) |
Get the jar or folder paths for a Kind#PATH origin.
| UnsupportedOperationException | for incompatible kinds |
Implemented in net.fabricmc.loader.impl.metadata.ModOriginImpl.