mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-31 04:46:37 +00:00
refactor(core): 重构反射
This commit is contained in:
@@ -75,8 +75,8 @@ public final class BukkitReflectionUtils {
|
||||
}
|
||||
|
||||
public static Class<?> findReobfOrMojmapClass(String reobf, String mojmap, Function<String, String> classDecorator) {
|
||||
if (VersionHelper.isMojmap()) return ReflectionUtils.getClazz(classDecorator.apply(reobf));
|
||||
else return ReflectionUtils.getClazz(classDecorator.apply(mojmap));
|
||||
if (VersionHelper.isMojmap()) return ReflectionUtils.getClazz(classDecorator.apply(mojmap));
|
||||
else return ReflectionUtils.getClazz(classDecorator.apply(reobf));
|
||||
}
|
||||
|
||||
public static Class<?> findReobfOrMojmapClass(List<String> reobf, String mojmap) {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user