net.minecraft.gametest.framework

public class GameTestRegistry

mc
net.minecraft.gametest.framework.GameTestRegistry
net.minecraft.class_4519
net.minecraft.test.TestFunctions
net.minecraft.src.C_4891_
net.minecraft.gametest.framework.GameTestHarnessRegistry

Field summary

Modifier and TypeField
private static final Collection<TestFunction>
a
TEST_FUNCTIONS
field_20570
TEST_FUNCTIONS
f_177495_
private static final Set<String>
b
TEST_CLASS_NAMES
field_20571
testClasses
f_177496_
private static final Map<String, Consumer<ServerLevel>>
c
BEFORE_BATCH_FUNCTIONS
field_20572
BEFORE_BATCH_CONSUMERS
f_177497_
private static final Map<String, Consumer<ServerLevel>>
d
AFTER_BATCH_FUNCTIONS
field_27806
AFTER_BATCH_CONSUMERS
f_177498_
private static final Collection<TestFunction>
e
LAST_FAILED_TESTS
field_25302
FAILED_TEST_FUNCTIONS
f_177499_

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static void
a(Class<?> arg0)
register(Class<?> arg0)
method_36068(Class<?> arg0)
register(Class<?> testClass)
m_177501_(Class<?> p_177502_)
public static void
a(Method arg0)
register(Method arg0)
method_36069(Method arg0)
register(Method method)
m_177503_(Method p_177504_)
private static <T extends Annotation> void
a(Method arg0, Class<T> arg1, Function<T, String> arg2, Map<String, Consumer<abr>> arg3)
registerBatchFunction(Method arg0, Class<T> arg1, Function<T, String> arg2, Map<String, Consumer<ServerLevel>> arg3)
method_36070(Method arg0, Class<T> arg1, Function<T, String> arg2, Map<String, Consumer<class_3218>> arg3)
registerBatchConsumers(Method method, Class<T> clazz, Function<T, String> batchIdFunction, Map<String, Consumer<ServerWorld>> batchConsumerMap)
m_177505_(Method p_177506_, Class<T> p_177507_, Function<T, String> p_177508_, Map<String, Consumer<C_12_>> p_177509_)
public static Collection<TestFunction>
a(String arg0)
getTestFunctionsForClassName(String arg0)
method_22193(String arg0)
getTestFunctions(String testClass)
m_127659_(String p_127660_)
public static Collection<TestFunction>
a()
getAllTestFunctions()
method_22191()
getTestFunctions()
m_127658_()
public static Collection<String>
b()
getAllTestClassNames()
method_22195()
getTestClasses()
m_127669_()
public static boolean
b(String arg0)
isTestClass(String arg0)
method_22196(String arg0)
testClassExists(String testClass)
m_127670_(String p_127671_)
public static Consumer<ServerLevel>
c(String arg0)
getBeforeBatchFunction(String arg0)
method_22198(String arg0)
getAfterBatchConsumer(String batchId)
m_127676_(String p_127677_)
public static Consumer<ServerLevel>
d(String arg0)
getAfterBatchFunction(String arg0)
method_32244(String arg0)
getBeforeBatchConsumer(String batchId)
m_177517_(String p_177518_)
public static Optional<TestFunction>
e(String arg0)
findTestFunction(String arg0)
method_22199(String arg0)
getTestFunction(String structurePath)
m_127679_(String p_127680_)
public static TestFunction
f(String arg0)
getTestFunction(String arg0)
method_22200(String arg0)
getTestFunctionOrThrow(String structurePath)
m_127681_(String p_127682_)
private static Collection<TestFunction>
b(Method arg0)
useTestGeneratorMethod(Method arg0)
method_36072(Method arg0)
getCustomTestFunctions(Method method)
m_177513_(Method p_177514_)
private static TestFunction
c(Method arg0)
turnMethodIntoTestFunction(Method arg0)
method_36073(Method arg0)
getTestFunction(Method method)
m_177515_(Method p_177516_)
private static Consumer<?>
d(Method arg0)
turnMethodIntoConsumer(Method arg0)
method_36074(Method arg0)
getInvoker(Method method)
m_177519_(Method p_177520_)
private static boolean
a(mr arg0, String arg1)
isTestFunctionPartOfClass(TestFunction arg0, String arg1)
method_22192(class_4529 arg0, String arg1)
isInClass(TestFunction testFunction, String testClass)
m_127666_(C_4904_ p_127667_, String p_127668_)
public static Collection<TestFunction>
c()
getLastFailedTests()
method_29405()
getFailedTestFunctions()
m_127675_()
public static void
a(mr arg0)
rememberFailedTest(TestFunction arg0)
method_29404(class_4529 arg0)
addFailedTestFunction(TestFunction testFunction)
m_127664_(C_4904_ p_127665_)
public static void
d()
forgetFailedTests()
method_29406()
clearFailedTestFunctions()
m_127678_()