Package net.neoforged.testframework.impl
Class ReflectionUtils
java.lang.Object
net.neoforged.testframework.impl.ReflectionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddListener(GameTestHelper helper, GameTestListener listener) static MethodHandleconstructor(Class<?> owner, MethodType type) static MethodHandlefieldHandle(Field field) static Fieldstatic <T> TgetInstanceField(Object instance, String name) static MethodHandlestatic MethodmethodMatching(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
-