Package net.neoforged.testframework.impl
Class ReflectionUtils
java.lang.Object
net.neoforged.testframework.impl.ReflectionUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addListener
(GameTestHelper helper, GameTestListener listener) static MethodHandle
constructor
(Class<?> owner, MethodType type) static MethodHandle
fieldHandle
(Field field) static Field
static <T> T
getInstanceField
(Object instance, String name) static MethodHandle
static Method
methodMatching
(Class<?> clazz, Predicate<Method> methodPredicate) static Class
<?> parentOrTopLevel
(Class<?> clazz)
-
Constructor Details
-
ReflectionUtils
public ReflectionUtils()
-
-
Method Details
-
getInstanceField
-
getField
-
fieldHandle
-
handle
-
constructor
-
methodMatching
-
parentOrTopLevel
-
addListener
-