Package net.minecraftforge.gametest
Class ForgeGameTestHooks
java.lang.Object
net.minecraftforge.gametest.ForgeGameTestHooks
Internal class used to glue mods into the game test framework.
Modders should use the supplied annotations and
RegisterGameTestsEvent-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final org.objectweb.asm.Typeprivate static final org.apache.logging.log4j.Loggerprivate static boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddGameTestMethods(net.minecraftforge.forgespi.language.ModFileScanData.AnnotationData annotationData, Set<Method> gameTestMethods) static voidaddTest(Collection<TestFunction> functions, Set<String> classes, Set<String> filters, TestFunction func) private static Stringprivate static @Nullable Stringprivate static StringgetPrefixed(Method method, String name) static StringgetTestBatch(Method method, GameTest gametest) static StringgetTestName(Method method, GameTest meta) static StringgetTestTemplate(Method method, GameTest meta, String testName) static booleanstatic booleanstatic void
-
Field Details
-
registeredGametests
private static boolean registeredGametests -
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
GAME_TEST_HOLDER
private static final org.objectweb.asm.Type GAME_TEST_HOLDER -
DEFAULT_BATCH
-
-
Constructor Details
-
ForgeGameTestHooks
public ForgeGameTestHooks()
-
-
Method Details
-
isGametestEnabled
public static boolean isGametestEnabled() -
isGametestServer
public static boolean isGametestServer() -
registerGametests
public static void registerGametests() -
getEnabledNamespaces
-
addGameTestMethods
-
getTestName
-
getPrefixed
-
getPrefix
-
getTestTemplate
-
getDefaultBatch
-
getTestBatch
-
addTest
public static void addTest(Collection<TestFunction> functions, Set<String> classes, Set<String> filters, TestFunction func)
-