getMethods
public static java.lang.invoke.MethodHandle[] getMethods(java.lang.Class<?> craftPlayerClass,
java.lang.Class<?> entityPlayer,
java.lang.String methodName,
java.lang.String fieldName)
throws java.lang.IllegalAccessException,
java.lang.NoSuchFieldException,
java.lang.NoSuchMethodException
Get methods for getting the ping value.
- Parameters:
craftPlayerClass
- Class for player
entityPlayer
- Class for player entity
methodName
- getHandle method
fieldName
- Latency field name
- Returns:
- [getHandle method, getPlayer method]
- Throws:
java.lang.NoSuchMethodException
- Method doesn't exist
java.lang.IllegalAccessException
- Method can't be accessed
java.lang.NoSuchFieldException
- Field can't be accessed
java.lang.IllegalArgumentException
- Something else