This commit is contained in:
坏黑
2018-04-26 23:33:44 +08:00
parent 381d96c5b1
commit 93e84b1b80
40 changed files with 444 additions and 278 deletions

View File

@@ -52,8 +52,7 @@ public class NMSUtils {
public static Class<?> getNMSClass(String className){
try{
return getNMSClassWithException(className);
}catch(Exception e){
e.printStackTrace();
}catch(Exception ignored){
}
return null;
}
@@ -89,8 +88,7 @@ public class NMSUtils {
public static Class<?> getOBCClass(String className){
try{
return getOBCClassWithException(className);
}catch(Exception e){
e.printStackTrace();
}catch(Exception ignored){
}
return null;
}
@@ -106,8 +104,7 @@ public class NMSUtils {
public static Object getHandle(Object obj){
try{
return getMethodWithException(obj.getClass(), "getHandle").invoke(obj);
}catch(Exception e){
e.printStackTrace();
}catch(Exception ignored){
return null;
}
}