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 SummaryFieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final org.objectweb.asm.Typeprivate static final org.apache.logging.log4j.Loggerprivate static boolean
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
registeredGametestsprivate static boolean registeredGametests
- 
LOGGERprivate static final org.apache.logging.log4j.Logger LOGGER
- 
GAME_TEST_HOLDERprivate static final org.objectweb.asm.Type GAME_TEST_HOLDER
- 
DEFAULT_BATCH
 
- 
- 
Constructor Details- 
ForgeGameTestHookspublic ForgeGameTestHooks()
 
- 
- 
Method Details- 
isGametestEnabledpublic static boolean isGametestEnabled()
- 
isGametestServerpublic static boolean isGametestServer()
- 
registerGametestspublic static void registerGametests()
- 
getEnabledNamespaces
- 
addGameTestMethods
- 
getTestName
- 
getPrefixed
- 
getPrefix
- 
getTestTemplate
- 
getDefaultBatch
- 
getTestBatch
- 
addTestpublic static void addTest(Collection<TestFunction> functions, Set<String> classes, Set<String> filters, TestFunction func) 
 
-