-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMappingUtils.java
More file actions
122 lines (111 loc) · 5.04 KB
/
MappingUtils.java
File metadata and controls
122 lines (111 loc) · 5.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
package io.github.fabriccompatibiltylayers.modremappingapi.api;
import io.github.fabriccompatibiltylayers.modremappingapi.impl.MappingsUtilsImpl;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* @deprecated Deprecated in favor of {@link io.github.fabriccompatibiltylayers.modremappingapi.api.v1.MappingUtils}
*/
@Deprecated
public interface MappingUtils {
/**
* @deprecated Deprecated in favor of {@link io.github.fabriccompatibiltylayers.modremappingapi.api.v1.MappingUtils#mapClass(String)}
* @param className original class name
* @return remapped class name
*/
@Deprecated
static String mapClass(String className) {
return io.github.fabriccompatibiltylayers.modremappingapi.api.v1.MappingUtils.mapClass(className);
}
/**
* @deprecated Deprecated in favor of {@link io.github.fabriccompatibiltylayers.modremappingapi.api.v1.MappingUtils#unmapClass(String)}
* @param className remapped class name
* @return original class name
*/
@Deprecated
static String unmapClass(String className) {
return io.github.fabriccompatibiltylayers.modremappingapi.api.v1.MappingUtils.unmapClass(className);
}
/**
* @deprecated Deprecated in favor of {@link io.github.fabriccompatibiltylayers.modremappingapi.api.v1.MappingUtils#mapField(String, String, String)}
* @param className original class name
* @param fieldName
* @param fieldDesc
* @return
*/
@Deprecated
static MappingUtils.ClassMember mapField(String className, String fieldName, @Nullable String fieldDesc) {
return MappingsUtilsImpl.mapField(MappingsUtilsImpl.getV1Registry(), className, fieldName, fieldDesc);
}
/**
* @deprecated Deprecated in favor of {@link io.github.fabriccompatibiltylayers.modremappingapi.api.v1.MappingUtils#mapFieldFromRemappedClass(String, String, String)}
* @param className remapped class name
* @param fieldName
* @param fieldDesc
* @return
*/
@Deprecated
static MappingUtils.ClassMember mapFieldFromRemappedClass(String className, String fieldName, @Nullable String fieldDesc) {
return MappingsUtilsImpl.mapFieldFromRemappedClass(MappingsUtilsImpl.getV1Registry(), className, fieldName, fieldDesc);
}
/**
* @deprecated Deprecated in favor of {@link io.github.fabriccompatibiltylayers.modremappingapi.api.v1.MappingUtils#mapMethod(String, String, String)}
* @param className original class name
* @param methodName
* @param methodDesc
* @return
*/
@Deprecated
static MappingUtils.ClassMember mapMethod(String className, String methodName, String methodDesc) {
return MappingsUtilsImpl.mapMethod(MappingsUtilsImpl.getV1Registry(), className, methodName, methodDesc);
}
/**
* @deprecated Deprecated in favor of {@link io.github.fabriccompatibiltylayers.modremappingapi.api.v1.MappingUtils#mapMethodFromRemappedClass(String, String, String)}
* @param className remapped class name
* @param methodName
* @param methodDesc
* @return
*/
@Deprecated
static MappingUtils.ClassMember mapMethodFromRemappedClass(String className, String methodName, String methodDesc) {
return MappingsUtilsImpl.mapMethodFromRemappedClass(MappingsUtilsImpl.getV1Registry(), className, methodName, methodDesc);
}
/**
* @deprecated Deprecated in favor of {@link io.github.fabriccompatibiltylayers.modremappingapi.api.v1.MappingUtils#mapField(Class, String)}
* @param owner
* @param fieldName
* @return
*/
@Deprecated
static MappingUtils.ClassMember mapField(Class<?> owner, String fieldName) {
return MappingsUtilsImpl.mapField(MappingsUtilsImpl.getV1Registry(), owner, fieldName);
}
/**
* @deprecated Deprecated in favor of {@link io.github.fabriccompatibiltylayers.modremappingapi.api.v1.MappingUtils#mapMethod(Class, String, Class[])}
* @param owner
* @param methodName
* @param parameterTypes
* @return
*/
@Deprecated
static MappingUtils.ClassMember mapMethod(Class<?> owner, String methodName, Class<?>[] parameterTypes) {
return MappingsUtilsImpl.mapMethod(MappingsUtilsImpl.getV1Registry(), owner, methodName, parameterTypes);
}
/**
* @deprecated Deprecated in favor of {@link io.github.fabriccompatibiltylayers.modremappingapi.api.v1.MappingUtils#mapDescriptor(String)}
* @param desc original descriptor
* @return remapped descriptor
*/
@Deprecated
static String mapDescriptor(String desc) {
return io.github.fabriccompatibiltylayers.modremappingapi.api.v1.MappingUtils.mapDescriptor(desc);
}
/**
* @deprecated Deprecated in favor of {@link io.github.fabriccompatibiltylayers.modremappingapi.api.v1.MappingUtils.ClassMember}
*/
@Deprecated
class ClassMember extends io.github.fabriccompatibiltylayers.modremappingapi.api.v1.MappingUtils.ClassMember {
public ClassMember(@NotNull String name, @Nullable String desc) {
super(name, desc);
}
}
}