Package net.minecraft.gametest.framework
Class GameTestRegistry
java.lang.Object
net.minecraft.gametest.framework.GameTestRegistry
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final Map<String,Consumer<ServerLevel>> private static final Map<String,Consumer<ServerLevel>> private static final Collection<TestFunction>private static final Collection<TestFunction>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic Optional<TestFunction>findTestFunction(String p_127680_) static voidstatic Consumer<ServerLevel>getAfterBatchFunction(String p_177518_) static Collection<String>static Collection<TestFunction>static Consumer<ServerLevel>getBeforeBatchFunction(String p_127677_) static Collection<TestFunction>static TestFunctiongetTestFunction(String p_127682_) static Collection<TestFunction>getTestFunctionsForClassName(String p_127660_) static booleanisTestClass(String p_127671_) private static booleanisTestFunctionPartOfClass(TestFunction p_127667_, String p_127668_) static voidDeprecated.static voidDeprecated.Forge: UseRegisterGameTestsEventto register game testsstatic voidDeprecated.Forge: UseRegisterGameTestsEventto register game testsprivate static <T extends Annotation>
 voidregisterBatchFunction(Method p_177506_, Class<T> p_177507_, Function<T, String> p_177508_, Map<String, Consumer<ServerLevel>> p_177509_) static voidrememberFailedTest(TestFunction p_127665_) private static Consumer<?>turnMethodIntoConsumer(Method p_177520_) private static TestFunctionturnMethodIntoTestFunction(Method p_177516_) private static Collection<TestFunction>useTestGeneratorMethod(Method p_177514_) 
- 
Field Details- 
TEST_FUNCTIONS
- 
TEST_CLASS_NAMES
- 
BEFORE_BATCH_FUNCTIONS
- 
AFTER_BATCH_FUNCTIONS
- 
LAST_FAILED_TESTS
 
- 
- 
Constructor Details- 
GameTestRegistrypublic GameTestRegistry()
 
- 
- 
Method Details- 
registerDeprecated.Forge: UseRegisterGameTestsEventto register game tests
- 
registerDeprecated.Forge: UseRegisterGameTestsEventto register game tests
- 
registerDeprecated.Forge: UseRegisterGameTestsEventto register game tests
- 
registerBatchFunctionprivate static <T extends Annotation> void registerBatchFunction(Method p_177506_, Class<T> p_177507_, Function<T, String> p_177508_, Map<String, Consumer<ServerLevel>> p_177509_) 
- 
getTestFunctionsForClassName
- 
getAllTestFunctions
- 
getAllTestClassNames
- 
isTestClass
- 
getBeforeBatchFunction
- 
getAfterBatchFunction
- 
findTestFunction
- 
getTestFunction
- 
useTestGeneratorMethod
- 
turnMethodIntoTestFunction
- 
turnMethodIntoConsumer
- 
isTestFunctionPartOfClass
- 
getLastFailedTests
- 
rememberFailedTest
- 
forgetFailedTestspublic static void forgetFailedTests()
 
- 
RegisterGameTestsEventto register game tests