public class FMLDeobfuscatingRemapper
extends org.objectweb.asm.commons.Remapper
Modifier and Type | Field and Description |
---|---|
private net.minecraft.launchwrapper.LaunchClassLoader |
classLoader |
private com.google.common.collect.BiMap<java.lang.String,java.lang.String> |
classNameBiMap |
private static boolean |
DEBUG_REMAPPING |
private static boolean |
DUMP_FIELD_MAPS |
private static boolean |
DUMP_METHOD_MAPS |
private java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
fieldDescriptions |
private java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
fieldNameMaps |
static FMLDeobfuscatingRemapper |
INSTANCE |
private java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
methodNameMaps |
private java.util.Set<java.lang.String> |
negativeCacheFields |
private java.util.Set<java.lang.String> |
negativeCacheMethods |
private java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
rawFieldMaps |
private java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
rawMethodMaps |
Modifier | Constructor and Description |
---|---|
private |
FMLDeobfuscatingRemapper() |
Modifier and Type | Method and Description |
---|---|
private void |
findAndMergeSuperMaps(java.lang.String name) |
private java.util.Map<java.lang.String,java.lang.String> |
getFieldMap(java.lang.String className,
boolean raw) |
private java.lang.String |
getFieldType(java.lang.String owner,
java.lang.String name) |
private java.util.Map<java.lang.String,java.lang.String> |
getMethodMap(java.lang.String className) |
java.util.Set<java.lang.String> |
getObfedClasses() |
private java.util.Map<java.lang.String,java.lang.String> |
getRawFieldMap(java.lang.String className) |
java.lang.String |
getStaticFieldType(java.lang.String oldType,
java.lang.String oldName,
java.lang.String newType,
java.lang.String newName) |
boolean |
isRemappedClass(java.lang.String className) |
java.lang.String |
map(java.lang.String typeName) |
java.lang.String |
mapFieldName(java.lang.String owner,
java.lang.String name,
java.lang.String desc) |
(package private) java.lang.String |
mapFieldName(java.lang.String owner,
java.lang.String name,
java.lang.String desc,
boolean raw) |
(package private) java.lang.String |
mapMemberFieldName(java.lang.String owner,
java.lang.String name,
java.lang.String desc) |
java.lang.String |
mapMethodName(java.lang.String owner,
java.lang.String name,
java.lang.String desc) |
java.lang.String |
mapSignature(java.lang.String signature,
boolean typeSignature) |
void |
mergeSuperMaps(java.lang.String name,
java.lang.String superName,
java.lang.String[] interfaces) |
private void |
parseClass(com.google.common.collect.ImmutableBiMap.Builder<java.lang.String,java.lang.String> builder,
java.lang.String[] parts) |
private void |
parseField(java.lang.String[] parts) |
private void |
parseMethod(java.lang.String[] parts) |
void |
setup(java.io.File mcDir,
net.minecraft.launchwrapper.LaunchClassLoader classLoader,
java.lang.String deobfFileName) |
void |
setupLoadOnly(java.lang.String deobfFileName,
boolean loadAll) |
private void |
storeMemberFieldMapping(java.lang.String owner,
java.lang.String name,
java.lang.String desc,
java.lang.String remappedName) |
java.lang.String |
unmap(java.lang.String typeName) |
public static final FMLDeobfuscatingRemapper INSTANCE
private com.google.common.collect.BiMap<java.lang.String,java.lang.String> classNameBiMap
private java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> rawFieldMaps
private java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> rawMethodMaps
private java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> fieldNameMaps
private java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> methodNameMaps
private net.minecraft.launchwrapper.LaunchClassLoader classLoader
private static final boolean DEBUG_REMAPPING
private static final boolean DUMP_FIELD_MAPS
private static final boolean DUMP_METHOD_MAPS
private final java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> fieldDescriptions
private java.util.Set<java.lang.String> negativeCacheMethods
private java.util.Set<java.lang.String> negativeCacheFields
public void setupLoadOnly(java.lang.String deobfFileName, boolean loadAll)
public void setup(java.io.File mcDir, net.minecraft.launchwrapper.LaunchClassLoader classLoader, java.lang.String deobfFileName)
public boolean isRemappedClass(java.lang.String className)
private void parseField(java.lang.String[] parts)
@Nullable private java.lang.String getFieldType(java.lang.String owner, java.lang.String name)
private void parseClass(com.google.common.collect.ImmutableBiMap.Builder<java.lang.String,java.lang.String> builder, java.lang.String[] parts)
private void parseMethod(java.lang.String[] parts)
java.lang.String mapMemberFieldName(java.lang.String owner, java.lang.String name, java.lang.String desc)
private void storeMemberFieldMapping(java.lang.String owner, java.lang.String name, java.lang.String desc, java.lang.String remappedName)
public java.lang.String mapFieldName(java.lang.String owner, java.lang.String name, @Nullable java.lang.String desc)
mapFieldName
in class org.objectweb.asm.commons.Remapper
java.lang.String mapFieldName(java.lang.String owner, java.lang.String name, @Nullable java.lang.String desc, boolean raw)
public java.lang.String map(java.lang.String typeName)
map
in class org.objectweb.asm.commons.Remapper
public java.lang.String unmap(java.lang.String typeName)
public java.lang.String mapMethodName(java.lang.String owner, java.lang.String name, java.lang.String desc)
mapMethodName
in class org.objectweb.asm.commons.Remapper
@Nullable public java.lang.String mapSignature(java.lang.String signature, boolean typeSignature)
mapSignature
in class org.objectweb.asm.commons.Remapper
private java.util.Map<java.lang.String,java.lang.String> getRawFieldMap(java.lang.String className)
private java.util.Map<java.lang.String,java.lang.String> getFieldMap(java.lang.String className, boolean raw)
private java.util.Map<java.lang.String,java.lang.String> getMethodMap(java.lang.String className)
private void findAndMergeSuperMaps(java.lang.String name)
public void mergeSuperMaps(java.lang.String name, @Nullable java.lang.String superName, java.lang.String[] interfaces)
public java.util.Set<java.lang.String> getObfedClasses()
@Nullable public java.lang.String getStaticFieldType(java.lang.String oldType, java.lang.String oldName, java.lang.String newType, java.lang.String newName)