Class PingMethodReflection
java.lang.Object
com.djrapitops.plan.gathering.timed.PingMethodReflection
-
Method Summary
Modifier and TypeMethodDescriptionstatic MethodHandle[]
getMethods(Class<?> craftPlayerClass, Class<?> entityPlayer, String methodName, String fieldName)
Get methods for getting the ping value.
-
Method Details
-
getMethods
public static MethodHandle[] getMethods(Class<?> craftPlayerClass, Class<?> entityPlayer, String methodName, String fieldName) throws IllegalAccessException, NoSuchFieldException, NoSuchMethodExceptionGet methods for getting the ping value.- Parameters:
craftPlayerClass
- Class for playerentityPlayer
- Class for player entitymethodName
- getHandle methodfieldName
- Latency field name- Returns:
- [getHandle method, getPlayer method]
- Throws:
NoSuchMethodException
- Method doesn't existIllegalAccessException
- Method can't be accessedNoSuchFieldException
- Field can't be accessedIllegalArgumentException
- Something else
-