类 GameTestRegistry
java.lang.Object
net.minecraft.gametest.framework.GameTestRegistry
-
字段概要
字段修饰符和类型字段说明private static final Map<String,
Consumer<ServerLevel>> private static final Map<String,
Consumer<ServerLevel>> private static final Collection<TestFunction>
private static final Collection<TestFunction>
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static Optional<TestFunction>
findTestFunction
(String pTestName) static void
static Consumer<ServerLevel>
getAfterBatchFunction
(String pFunctionName) static Collection<String>
static Collection<TestFunction>
static Consumer<ServerLevel>
getBeforeBatchFunction
(String pFunctionName) static Collection<TestFunction>
static TestFunction
getTestFunction
(String pTestName) static Collection<TestFunction>
getTestFunctionsForClassName
(String pClassName) static boolean
isTestClass
(String pClassName) private static boolean
isTestFunctionPartOfClass
(TestFunction pTestFunction, String pClassName) static void
已过时。static void
已过时。Forge: UseRegisterGameTestsEvent
to register game testsstatic void
已过时。Forge: UseRegisterGameTestsEvent
to register game testsprivate static <T extends Annotation>
voidregisterBatchFunction
(Method pTestMethod, Class<T> pAnnotationType, Function<T, String> pValueGetter, Map<String, Consumer<ServerLevel>> pPositioning) static void
rememberFailedTest
(TestFunction pTestFunction) private static Consumer<?>
turnMethodIntoConsumer
(Method pTestMethod) private static TestFunction
turnMethodIntoTestFunction
(Method pTestMethod) private static Collection<TestFunction>
useTestGeneratorMethod
(Method pTestMethod)
-
字段详细资料
-
TEST_FUNCTIONS
-
TEST_CLASS_NAMES
-
BEFORE_BATCH_FUNCTIONS
-
AFTER_BATCH_FUNCTIONS
-
LAST_FAILED_TESTS
-
-
构造器详细资料
-
GameTestRegistry
public GameTestRegistry()
-
-
方法详细资料
-
register
已过时。Forge: UseRegisterGameTestsEvent
to register game tests -
register
已过时。Forge: UseRegisterGameTestsEvent
to register game tests -
register
已过时。Forge: UseRegisterGameTestsEvent
to register game tests -
registerBatchFunction
private static <T extends Annotation> void registerBatchFunction(Method pTestMethod, Class<T> pAnnotationType, Function<T, String> pValueGetter, Map<String, Consumer<ServerLevel>> pPositioning) -
getTestFunctionsForClassName
-
getAllTestFunctions
-
getAllTestClassNames
-
isTestClass
-
getBeforeBatchFunction
-
getAfterBatchFunction
-
findTestFunction
-
getTestFunction
-
useTestGeneratorMethod
-
turnMethodIntoTestFunction
-
turnMethodIntoConsumer
-
isTestFunctionPartOfClass
-
getLastFailedTests
-
rememberFailedTest
-
forgetFailedTests
public static void forgetFailedTests()
-
RegisterGameTestsEvent
to register game tests