Uses of Class
net.minecraft.test.GameTestState
-
Uses of GameTestState in net.minecraft.server.command
Modifier and TypeMethodDescriptionprivate static Optional
<GameTestState> TestCommand.find
(BlockPos pos, ServerWorld world, TestAttemptConfig config) (package private) static Stream
<GameTestState> TestCommand.stream
(ServerCommandSource source, TestAttemptConfig config, StructureBlockFinder finder) (package private) static Stream
<GameTestState> TestCommand.stream
(ServerCommandSource source, TestAttemptConfig config, TestFunctionFinder finder, int rotationSteps) Modifier and TypeMethodDescriptionvoid
TestCommand.Listener.onFailed
(GameTestState test, TestRunContext context) void
TestCommand.Listener.onPassed
(GameTestState test, TestRunContext context) void
TestCommand.Listener.onRetry
(GameTestState prevState, GameTestState nextState, TestRunContext context) void
TestCommand.Listener.onStarted
(GameTestState test) private static int
TestCommand.reset
(GameTestState state) -
Uses of GameTestState in net.minecraft.test
Modifier and TypeFieldDescriptionprivate final GameTestState
TestContext.test
(package private) final GameTestState
TimedTaskRunner.test
Modifier and TypeFieldDescriptionprivate final Collection
<GameTestState> GameTestBatch.states
The field for thestates
record component.private final List
<GameTestState> TestRunContext.states
private final Collection
<GameTestState> TestManager.tests
private final Collection
<GameTestState> TestSet.tests
private final List
<GameTestState> TestRunContext.toBeRetried
Modifier and TypeMethodDescriptionGameTestState.copy()
static GameTestState
Batches.createState
(TestFunction testFunction, int rotationSteps, ServerWorld world) GameTestState.init()
GameTestState.initializeImmediately()
GameTestState.startCountdown
(int additionalExpectedStopTime) Modifier and TypeMethodDescriptionTestSet.getOptionalTests()
TestSet.getRequiredTests()
TestRunContext.getStates()
private Optional
<GameTestState> TestRunContext.prepareStructure
(GameTestState oldState) private Collection
<GameTestState> TestRunContext.prepareStructures
(Collection<GameTestState> oldStates) TestRunContext.TestStructureSpawner.spawnStructure
(GameTestState oldState) TestStructurePlacer.spawnStructure
(GameTestState oldState) GameTestBatch.states()
Returns the value of thestates
record component.Modifier and TypeMethodDescriptionvoid
TestSet.add
(GameTestState test) private Element
XmlReportingTestCompletionListener.addTestCase
(GameTestState test, String name) private static void
StructureTestListener.createTestOutputLectern
(GameTestState test, String output) protected static void
StructureTestListener.failTest
(GameTestState test, Throwable output) static void
TestFailureLogger.failTest
(GameTestState test) protected static void
StructureTestListener.finishFailedTest
(GameTestState test, Throwable output) private static void
StructureTestListener.finishPassedTest
(GameTestState test, String output) static StructureBlockBlockEntity
StructureTestUtil.initStructure
(GameTestState state, BlockPos pos, BlockRotation rotation, ServerWorld world) void
StructureTestListener.onFailed
(GameTestState test, TestRunContext context) void
TestListener.onFailed
(GameTestState test, TestRunContext context) void
StructureTestListener.onPassed
(GameTestState test, TestRunContext context) void
TestListener.onPassed
(GameTestState test, TestRunContext context) void
StructureTestListener.onRetry
(GameTestState prevState, GameTestState nextState, TestRunContext context) void
TestListener.onRetry
(GameTestState prevState, GameTestState nextState, TestRunContext context) void
StructureTestListener.onStarted
(GameTestState test) void
TestListener.onStarted
(GameTestState test) void
FailureLoggingTestCompletionListener.onTestFailed
(GameTestState test) void
TestCompletionListener.onTestFailed
(GameTestState test) void
XmlReportingTestCompletionListener.onTestFailed
(GameTestState test) void
FailureLoggingTestCompletionListener.onTestPassed
(GameTestState test) void
TestCompletionListener.onTestPassed
(GameTestState test) void
XmlReportingTestCompletionListener.onTestPassed
(GameTestState test) static void
StructureTestListener.passTest
(GameTestState test, String output) static void
TestFailureLogger.passTest
(GameTestState test) private static StructureBlockBlockEntity
StructureTestUtil.placeStructureTemplate
(GameTestState state, BlockPos pos, BlockRotation rotation, ServerWorld world) private Optional
<GameTestState> TestRunContext.prepareStructure
(GameTestState oldState) void
TestSet.remove
(GameTestState state) private void
StructureTestListener.retry
(GameTestState state, TestRunContext context, boolean prevPassed) void
TestRunContext.retry
(GameTestState state) TestRunContext.TestStructureSpawner.spawnStructure
(GameTestState oldState) TestStructurePlacer.spawnStructure
(GameTestState oldState) void
TestManager.start
(GameTestState test) protected static void
StructureTestListener.visualizeTest
(GameTestState test, Block block) Modifier and TypeMethodDescriptionvoid
TestSet.addListener
(Consumer<GameTestState> onFailed) TestRunContext.Batcher.batch
(Collection<GameTestState> states) private static GameTestBatch
Batches.create
(List<GameTestState> states, String batchId, long index) static TestRunContext.Builder
TestRunContext.Builder.ofStates
(Collection<GameTestState> states, ServerWorld world) private Collection
<GameTestState> TestRunContext.prepareStructures
(Collection<GameTestState> oldStates) ModifierConstructorDescriptionNotEnoughSuccessesError
(int attempts, int successes, GameTestState test) TestContext
(GameTestState test) (package private)
TimedTaskRunner
(GameTestState gameTest) ModifierConstructorDescriptionGameTestBatch
(String id, Collection<GameTestState> testFunctions, Consumer<ServerWorld> beforeBatchConsumer, Consumer<ServerWorld> afterBatchConsumer) TestSet
(Collection<GameTestState> tests)