类 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
-
字段概要
字段修饰符和类型字段说明private static final String
private static final org.objectweb.asm.Type
private static final org.apache.logging.log4j.Logger
private static boolean
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private 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
-
字段详细资料
-
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
-
-
构造器详细资料
-
ForgeGameTestHooks
public ForgeGameTestHooks()
-
-
方法详细资料
-
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)
-