Quilt Loader 1
Loading...
Searching...
No Matches
net.fabricmc.loader.impl.MappingResolverImpl Class Reference
Inheritance diagram for net.fabricmc.loader.impl.MappingResolverImpl:
net.fabricmc.loader.api.MappingResolver

Public Member Functions

 MappingResolverImpl (MappingResolver quilt)
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.

Member Function Documentation

◆ getCurrentRuntimeNamespace()

String net.fabricmc.loader.impl.MappingResolverImpl.getCurrentRuntimeNamespace ( )
inline

Get the current namespace being used at runtime.

Returns
the runtime namespace

Implements net.fabricmc.loader.api.MappingResolver.

◆ getNamespaces()

Collection< String > net.fabricmc.loader.impl.MappingResolverImpl.getNamespaces ( )
inline

Get the list of all available mapping namespaces in the loaded instance.

Returns
The list of all available namespaces.

Implements net.fabricmc.loader.api.MappingResolver.

◆ mapClassName()

String net.fabricmc.loader.impl.MappingResolverImpl.mapClassName ( String namespace,
String className )
inline

Map a class name to the mapping currently used at runtime.

Parameters
namespacethe namespace of the provided class name
classNamethe provided binary class name
Returns
the mapped class name, or className if no such mapping is present

Implements net.fabricmc.loader.api.MappingResolver.

◆ mapFieldName()

String net.fabricmc.loader.impl.MappingResolverImpl.mapFieldName ( String namespace,
String owner,
String name,
String descriptor )
inline

Map a field name to the mapping currently used at runtime.

Parameters
namespacethe namespace of the provided field name and descriptor
ownerthe binary name of the owner class of the field
namethe name of the field
descriptorthe descriptor of the field
Returns
the mapped field name, or name if no such mapping is present

Implements net.fabricmc.loader.api.MappingResolver.

◆ mapMethodName()

String net.fabricmc.loader.impl.MappingResolverImpl.mapMethodName ( String namespace,
String owner,
String name,
String descriptor )
inline

Map a method name to the mapping currently used at runtime.

Parameters
namespacethe namespace of the provided method name and descriptor
ownerthe binary name of the owner class of the method
namethe name of the method
descriptorthe descriptor of the method
Returns
the mapped method name, or name if no such mapping is present

Implements net.fabricmc.loader.api.MappingResolver.

◆ unmapClassName()

String net.fabricmc.loader.impl.MappingResolverImpl.unmapClassName ( String targetNamespace,
String className )
inline

Unmap a class name to the mapping currently used at runtime.

Parameters
targetNamespaceThe target namespace for unmapping.
classNamethe provided binary class name of the mapping form currently used at runtime
Returns
the mapped class name, or className if no such mapping is present

Implements net.fabricmc.loader.api.MappingResolver.


The documentation for this class was generated from the following file:
  • src/fabric/impl/java/net/fabricmc/loader/impl/MappingResolverImpl.java