Class Reflex
java.lang.Object
studio.magemonkey.codex.util.Reflex
Deprecated.
Transitioning to version-specific implementations for better stability
This class interacts with Spigot at a reflection level. This is used to hack some things together but should ultimately be removed for a more stable solution.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?> Deprecated.static Class<?> Deprecated.static Constructor<?> getConstructor(Class<?> clazz, Class<?>... types) Deprecated.static Class<?> getCraftClass(String craftClassString) Deprecated.static StringDeprecated.static <T extends Enum>
TDeprecated.static FieldDeprecated.Deprecated.static ObjectgetFieldValue(Object from, String fieldName) Deprecated.static Class<?> getInnerClass(String path, String name) Deprecated.static ObjectgetInstance(Class<?> c, Object... args) Deprecated.Gets an instance of the classstatic MethodDeprecated.static MethodDeprecated.Tries to get a method from the objectstatic Class<?> getNMSClass(String name) Deprecated.static ObjectDeprecated.Tries to get a value from the objectstatic ObjectinvokeConstructor(Constructor<?> con, Object... obj) Deprecated.static ObjectinvokeMethod(Method m, Object by, Object... param) Deprecated.static booleansetFieldValue(Object of, String fieldName, Object value) Deprecated.static voidDeprecated.Tries to set a value for the object
-
Field Details
-
VERSION
Deprecated.
-
-
Constructor Details
-
Reflex
public Reflex()Deprecated.
-
-
Method Details
-
getClass
-
getInnerClass
-
getClass
-
getConstructor
Deprecated. -
invokeConstructor
Deprecated. -
getNMSClass
-
getCraftPackage
Deprecated. -
getCraftClass
-
getFields
-
getField
-
getFieldValue
-
setFieldValue
-
getMethod
-
getMethod
-
invokeMethod
-
getEnum
-
setValue
-
getValue
-
getInstance
-