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
Modifier and TypeFieldDescriptionprivate static final String
private static final org.objectweb.asm.Type
private static final org.apache.logging.log4j.Logger
private static boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
addGameTestMethods
(net.minecraftforge.forgespi.language.ModFileScanData.AnnotationData annotationData, Set<Method> gameTestMethods) static void
addTest
(Collection<TestFunction> functions, Set<String> classes, Set<String> filters, TestFunction func) private static String
private static @Nullable String
private static String
getPrefixed
(Method method, String name) static String
getTestBatch
(Method method, GameTest gametest) static String
getTestName
(Method method, GameTest meta) static String
getTestTemplate
(Method method, GameTest meta, String testName) static boolean
static boolean
static 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)
-