Package net.minecraft.test
Class TestUtils
- java.lang.Object
-
- net.minecraft.test.TestUtils
-
public class TestUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static ITestLogger
TEST_REPORTER
-
Constructor Summary
Constructors Constructor Description TestUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clearAllTests(ServerWorld p_229555_0_, BlockPos p_229555_1_, TestCollection p_229555_2_, int p_229555_3_)
static void
clearMarkers(ServerWorld p_229552_0_)
private static ItemStack
createBook(java.lang.String p_229546_0_, boolean p_229546_1_, java.lang.String p_229546_2_)
static java.util.Collection<TestBatch>
groupTestsIntoBatches(java.util.Collection<TestFunctionInfo> p_229548_0_)
static void
runTest(TestTracker p_240553_0_, BlockPos p_240553_1_, TestCollection p_240553_2_)
static java.util.Collection<TestTracker>
runTestBatches(java.util.Collection<TestBatch> p_240552_0_, BlockPos p_240552_1_, Rotation p_240552_2_, ServerWorld p_240552_3_, TestCollection p_240552_4_, int p_240552_5_)
static java.util.Collection<TestTracker>
runTests(java.util.Collection<TestFunctionInfo> p_240554_0_, BlockPos p_240554_1_, Rotation p_240554_2_, ServerWorld p_240554_3_, TestCollection p_240554_4_, int p_240554_5_)
private static void
say(ServerWorld p_229556_0_, TextFormatting p_229556_1_, java.lang.String p_229556_2_)
private static void
showRedBox(ServerWorld p_229554_0_, BlockPos p_229554_1_, java.lang.String p_229554_2_)
private static void
spawnBeacon(TestTracker p_229559_0_, Block p_229559_1_)
private static void
spawnLectern(TestTracker p_229560_0_, java.lang.String p_229560_1_)
private static void
visualizeFailedTest(TestTracker p_229563_0_)
-
-
-
Field Detail
-
TEST_REPORTER
public static ITestLogger TEST_REPORTER
-
-
Method Detail
-
runTest
public static void runTest(TestTracker p_240553_0_, BlockPos p_240553_1_, TestCollection p_240553_2_)
-
runTestBatches
public static java.util.Collection<TestTracker> runTestBatches(java.util.Collection<TestBatch> p_240552_0_, BlockPos p_240552_1_, Rotation p_240552_2_, ServerWorld p_240552_3_, TestCollection p_240552_4_, int p_240552_5_)
-
runTests
public static java.util.Collection<TestTracker> runTests(java.util.Collection<TestFunctionInfo> p_240554_0_, BlockPos p_240554_1_, Rotation p_240554_2_, ServerWorld p_240554_3_, TestCollection p_240554_4_, int p_240554_5_)
-
groupTestsIntoBatches
public static java.util.Collection<TestBatch> groupTestsIntoBatches(java.util.Collection<TestFunctionInfo> p_229548_0_)
-
visualizeFailedTest
private static void visualizeFailedTest(TestTracker p_229563_0_)
-
spawnBeacon
private static void spawnBeacon(TestTracker p_229559_0_, Block p_229559_1_)
-
spawnLectern
private static void spawnLectern(TestTracker p_229560_0_, java.lang.String p_229560_1_)
-
createBook
private static ItemStack createBook(java.lang.String p_229546_0_, boolean p_229546_1_, java.lang.String p_229546_2_)
-
say
private static void say(ServerWorld p_229556_0_, TextFormatting p_229556_1_, java.lang.String p_229556_2_)
-
clearMarkers
public static void clearMarkers(ServerWorld p_229552_0_)
-
showRedBox
private static void showRedBox(ServerWorld p_229554_0_, BlockPos p_229554_1_, java.lang.String p_229554_2_)
-
clearAllTests
public static void clearAllTests(ServerWorld p_229555_0_, BlockPos p_229555_1_, TestCollection p_229555_2_, int p_229555_3_)
-
-