|
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 fromNamespace, 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 fromNamespace, String owner, String name, String descriptor) |
| Map a field name to the mapping currently used at runtime. | |
| String | mapMethodName (String fromNamespace, String owner, String name, String descriptor) |
| Map a method name to the mapping currently used at runtime. | |
Helper class for performing mapping resolution.
This can be obtained through QuiltLoader#getMappingResolver().
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".
| String org.quiltmc.loader.api.MappingResolver.getCurrentRuntimeNamespace | ( | ) |
Get the current namespace being used at runtime.
Implemented in org.quiltmc.loader.impl.util.mappings.LazyMappingResolver, and org.quiltmc.loader.impl.util.mappings.QuiltMappingResolver.
| Collection< String > org.quiltmc.loader.api.MappingResolver.getNamespaces | ( | ) |
Get the list of all available mapping namespaces in the loaded instance.
Implemented in org.quiltmc.loader.impl.util.mappings.LazyMappingResolver, and org.quiltmc.loader.impl.util.mappings.QuiltMappingResolver.
| String org.quiltmc.loader.api.MappingResolver.mapClassName | ( | String | fromNamespace, |
| String | className ) |
Map a class name to the mapping currently used at runtime.
| fromNamespace | the namespace of the provided class name |
| className | the provided binary class name |
className if no such mapping is present Implemented in org.quiltmc.loader.impl.util.mappings.LazyMappingResolver, and org.quiltmc.loader.impl.util.mappings.QuiltMappingResolver.
| String org.quiltmc.loader.api.MappingResolver.mapFieldName | ( | String | fromNamespace, |
| String | owner, | ||
| String | name, | ||
| String | descriptor ) |
Map a field name to the mapping currently used at runtime.
| fromNamespace | 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 org.quiltmc.loader.impl.util.mappings.LazyMappingResolver, and org.quiltmc.loader.impl.util.mappings.QuiltMappingResolver.
| String org.quiltmc.loader.api.MappingResolver.mapMethodName | ( | String | fromNamespace, |
| String | owner, | ||
| String | name, | ||
| String | descriptor ) |
Map a method name to the mapping currently used at runtime.
| fromNamespace | 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 org.quiltmc.loader.impl.util.mappings.LazyMappingResolver, and org.quiltmc.loader.impl.util.mappings.QuiltMappingResolver.
| String org.quiltmc.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 org.quiltmc.loader.impl.util.mappings.LazyMappingResolver, and org.quiltmc.loader.impl.util.mappings.QuiltMappingResolver.