Uses of Class
net.minecraft.test.GameTestState
Packages that use GameTestState
-
Uses of GameTestState in net.minecraft.server.command
Methods in net.minecraft.server.command that return types with arguments of type GameTestStateModifier 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) Methods in net.minecraft.server.command with parameters of type GameTestStateModifier 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
Fields in net.minecraft.test declared as GameTestStateModifier and TypeFieldDescriptionprivate final GameTestState
TestContext.test
(package private) final GameTestState
TimedTaskRunner.test
Fields in net.minecraft.test with type parameters of type GameTestStateModifier and TypeFieldDescriptionprivate final Collection
<GameTestState> GameTestBatch.states
The field for thestates
record component.private final List
<GameTestState> TestRunContext.states
private final Collection
<GameTestState> TestStructurePlacer.statesToClear
private final Collection
<GameTestState> TestManager.tests
private final Collection
<GameTestState> TestSet.tests
private final List
<GameTestState> TestRunContext.toBeRetried
Methods in net.minecraft.test that return GameTestStateModifier and TypeMethodDescriptionGameTestState.copy()
static GameTestState
Batches.createState
(TestFunction testFunction, int rotationSteps, ServerWorld world) GameTestState.init()
GameTestState.initializeImmediately()
GameTestState.startCountdown
(int additionalExpectedStopTime) Methods in net.minecraft.test that return types with arguments of type GameTestStateModifier 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.Methods in net.minecraft.test with parameters of type GameTestStateModifier 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) private static BlockPos
StructureTestListener.getBeaconPos
(GameTestState state) static BlockPos
StructureTestUtil.getPlacementPos
(GameTestState state, BlockPos pos, BlockRotation rotation, ServerWorld world) 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 void
StructureTestListener.placeAboveBeacon
(GameTestState state, Block block) 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) Method parameters in net.minecraft.test with type arguments of type GameTestStateModifier and TypeMethodDescriptionvoid
TestSet.addListener
(Consumer<GameTestState> onFailed) TestRunContext.Batcher.batch
(Collection<GameTestState> states) static GameTestBatch
Batches.create
(Collection<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) Constructors in net.minecraft.test with parameters of type GameTestStateModifierConstructorDescriptionNotEnoughSuccessesError
(int attempts, int successes, GameTestState test) TestContext
(GameTestState test) (package private)
TimedTaskRunner
(GameTestState gameTest) Constructor parameters in net.minecraft.test with type arguments of type GameTestStateModifierConstructorDescriptionGameTestBatch
(String id, Collection<GameTestState> testFunctions, Consumer<ServerWorld> beforeBatchConsumer, Consumer<ServerWorld> afterBatchConsumer) TestSet
(Collection<GameTestState> tests)