|
Quilt Loader 1
|
Helper class for performing mapping resolution. More...
Public Member Functions | |
| Collection< String > | getNamespaces () |
| Get the list of all available mapping namespaces in the loaded instance. | |
| String | getCurrentRuntimeNamespace () |
| Get the current namespace being used at runtime. | |
| String | mapClassName (String namespace, String className) |
| Map a class name to the mapping currently used at runtime. | |
| String | unmapClassName (String targetNamespace, String className) |
| Unmap a class name to the mapping currently used at runtime. | |
| String | mapFieldName (String namespace, String owner, String name, String descriptor) |
| Map a field name to the mapping currently used at runtime. | |
| String | mapMethodName (String namespace, String owner, String name, String descriptor) |
| Map a method name to the mapping currently used at runtime. | |
Helper class for performing mapping resolution.
Note: The target namespace (the one being mapped to) for mapping (or the source one for unmapping) is always implied to be the one Loader is currently operating in.
All the className used in this resolver are in binary names, such as "mypackage.MyClass$Inner".
org.quiltmc.loader.api.MappingResolver | String net.fabricmc.loader.api.MappingResolver.getCurrentRuntimeNamespace | ( | ) |
Get the current namespace being used at runtime.
Implemented in net.fabricmc.loader.impl.MappingResolverImpl.
| Collection< String > net.fabricmc.loader.api.MappingResolver.getNamespaces | ( | ) |
Get the list of all available mapping namespaces in the loaded instance.
Implemented in net.fabricmc.loader.impl.MappingResolverImpl.
| String net.fabricmc.loader.api.MappingResolver.mapClassName | ( | String | namespace, |
| String | className ) |
Map a class name to the mapping currently used at runtime.
| namespace | the namespace of the provided class name |
| className | the provided binary class name |
className if no such mapping is present Implemented in net.fabricmc.loader.impl.MappingResolverImpl.
| String net.fabricmc.loader.api.MappingResolver.mapFieldName | ( | String | namespace, |
| String | owner, | ||
| String | name, | ||
| String | descriptor ) |
Map a field name to the mapping currently used at runtime.
| namespace | the namespace of the provided field name and descriptor |
| owner | the binary name of the owner class of the field |
| name | the name of the field |
| descriptor | the descriptor of the field |
name if no such mapping is present Implemented in net.fabricmc.loader.impl.MappingResolverImpl.
| String net.fabricmc.loader.api.MappingResolver.mapMethodName | ( | String | namespace, |
| String | owner, | ||
| String | name, | ||
| String | descriptor ) |
Map a method name to the mapping currently used at runtime.
| namespace | the namespace of the provided method name and descriptor |
| owner | the binary name of the owner class of the method |
| name | the name of the method |
| descriptor | the descriptor of the method |
name if no such mapping is present Implemented in net.fabricmc.loader.impl.MappingResolverImpl.
| String net.fabricmc.loader.api.MappingResolver.unmapClassName | ( | String | targetNamespace, |
| String | className ) |
Unmap a class name to the mapping currently used at runtime.
| targetNamespace | The target namespace for unmapping. |
| className | the provided binary class name of the mapping form currently used at runtime |
className if no such mapping is present Implemented in net.fabricmc.loader.impl.MappingResolverImpl.