Class MapperBase
java.lang.Object
de.florianmichael.asmfabricloader.api.MapperBase
Wrapper for the
TinyTree mappings. This class is used to convert between named and intermediary mappings.-
Constructor Summary
ConstructorsConstructorDescriptionMapperBase(net.fabricmc.mapping.tree.TinyTree mappings, String from, String to) -
Method Summary
Modifier and TypeMethodDescriptionnet.fabricmc.mapping.tree.ClassDefgetClassDef(String name) getClassName(String from) net.fabricmc.mapping.tree.FieldDefgetFieldDef(Class<?> owner, String name, boolean superclasses) getFieldName(Class<?> owner, String from) net.fabricmc.mapping.tree.MethodDefgetMethodDef(Class<?> owner, String name, boolean superclasses) getMethodName(Class<?> owner, String from)
-
Constructor Details
-
MapperBase
-
-
Method Details
-
getClassName
- Parameters:
from- The name of the class in the "from" mapping- Returns:
- The name of the class in the "to" mapping
-
getClassDef
- Parameters:
name- The name of the class in the "from" mapping- Returns:
- The class definition of the class
-
getMethodName
- Parameters:
owner- The owner of the methodfrom- The name of the method in the "from" mapping- Returns:
- The name of the method in the "to" mapping
-
getMethodDef
public net.fabricmc.mapping.tree.MethodDef getMethodDef(Class<?> owner, String name, boolean superclasses) - Parameters:
owner- The owner of the methodname- The name of the method in the "from" mappingsuperclasses- Whether to search in superclasses of the owner- Returns:
- The method definition of the method
-
getFieldName
- Parameters:
owner- The owner of the fieldfrom- The name of the field in the "from" mapping- Returns:
- The name of the field in the "to" mapping
-
getFieldDef
public net.fabricmc.mapping.tree.FieldDef getFieldDef(Class<?> owner, String name, boolean superclasses) - Parameters:
owner- The owner of the fieldname- The name of the field in the "from" mappingsuperclasses- Whether to search in superclasses of the owner- Returns:
- The field definition of the field
-