net.minecraft.test

public class GameTestState

net.minecraft.gametest.framework.GameTestInfo
net.minecraft.class_4517
net.minecraft.test.GameTestState

Field summary

Modifier and TypeField
private final RegistryEntry$Reference<TestInstance>
test
field_56173
instanceEntry
private BlockPos
testBlockPos
field_56174
testBlockPos
private final ServerWorld
level
field_20561
world
private final Collection<TestListener>
listeners
field_20562
listeners
private final int
timeoutTicks
field_20563
tickLimit
private final Collection<TimedTaskRunner>
sequences
field_21452
timedTaskRunners
private final it.unimi.dsi.fastutil.objects.Object2LongMap<Runnable>
runAtTickTimeMap
field_21453
ticksByRunnables
private boolean
placedStructure
field_47173
initialized
private boolean
chunksLoaded
field_47174
tickedOnce
private int
tickCount
field_21455
tick
private boolean
started
field_20565
started
private final TestAttemptConfig
retryOptions
field_48469
testAttemptConfig
private final com.google.common.base.Stopwatch
timer
field_21456
stopwatch
private boolean
done
field_20567
completed
private final BlockRotation
extraRotation
field_56175
rotation
private TestException
error
field_20569
exception
private TestInstanceBlockEntity
testInstanceBlockEntity
field_56176
blockEntity

Constructor summary

ModifierConstructor
public (RegistryEntry$Reference<TestInstance> instanceEntry, BlockRotation rotation, ServerWorld world, TestAttemptConfig testAttemptConfig)

Method summary

Modifier and TypeMethod
public void
setTestBlockPos(BlockPos testBlockPos)
method_66949(class_2338 arg0)
setTestBlockPos(BlockPos testBlockPos)
public GameTestState
startExecution(int tickDelay)
method_23634(int arg0)
startCountdown(int additionalExpectedStopTime)
public void
placeStructure()
method_56213()
initializeImmediately()
public void
tick(GameTestRunner runner)
method_22165(class_4520 arg0)
tick(TestRunContext context)
private void
tickInternal()
method_33315()
tickTests()
private void
startTest()
method_23639()
start()
public void
setRunAtTickTime(long time, Runnable assertAtTickTime)
method_36060(long arg0, Runnable arg1)
runAtTick(long tick, Runnable runnable)
public Identifier
id()
method_66951()
getId()
public BlockPos
getTestBlockPos()
method_22172()
getPos()
public BlockPos
getTestOrigin()
method_64385()
getOrigin()
public Box
getStructureBounds()
method_36062()
getBoundingBox()
public TestInstanceBlockEntity
getTestInstanceBlockEntity()
method_66953()
getTestInstanceBlockEntity()
public ServerWorld
getLevel()
method_22176()
getWorld()
public boolean
hasSucceeded()
method_22177()
isPassed()
public boolean
hasFailed()
method_22178()
isFailed()
public boolean
hasStarted()
method_22179()
isStarted()
public boolean
isDone()
method_22180()
isCompleted()
public long
getRunTime()
method_36063()
getElapsedMilliseconds()
private void
finish()
method_23640()
complete()
public void
succeed()
method_36064()
completeIfSuccessful()
public void
fail(Component message)
method_67485(class_2561 arg0)
fail(Text message)
public void
fail(GameTestException error)
method_22168(class_10751 arg0)
fail(TestException exception)
public TestException
getError()
method_22182()
getThrowable()
public void
addListener(GameTestListener listener)
method_22167(class_4518 arg0)
addListener(TestListener listener)
public GameTestState
prepareTestStructure()
method_22166()
init()
private TestInstanceBlockEntity
createTestInstanceBlock(BlockPos testPos, Rotation rotation, ServerLevel level)
method_66950(class_2338 arg0, class_2470 arg1, class_3218 arg2)
placeTestInstance(BlockPos pos, BlockRotation rotation, ServerWorld world)
public int
getTick()
method_36065()
getTick()
public TimedTaskRunner
createSequence()
method_36066()
createTimedTaskRunner()
public boolean
isRequired()
method_22183()
isRequired()
public boolean
isOptional()
method_22184()
isOptional()
public Identifier
getStructure()
method_66954()
getStructure()
public BlockRotation
getRotation()
method_29402()
getRotation()
public TestInstance
getTest()
method_66955()
getInstance()
public RegistryEntry$Reference<TestInstance>
getTestHolder()
method_66956()
getInstanceEntry()
public int
getTimeoutTicks()
method_36067()
getTickLimit()
public boolean
isFlaky()
method_32241()
isFlaky()
public int
maxAttempts()
method_32242()
getMaxAttempts()
public int
requiredSuccesses()
method_32243()
getRequiredSuccesses()
public TestAttemptConfig
retryOptions()
method_56215()
getTestAttemptConfig()
public Stream<TestListener>
getListeners()
method_56209()
streamListeners()
public GameTestState
copyReset()
method_56210()
copy()
private static void
lambda$succeed$1(Entity arg0)
method_54434(class_1297 arg0)
method_54434(Entity entity)
private static boolean
lambda$succeed$0(Entity arg0)
method_54435(class_1297 arg0)
method_54435(Entity entity)
private void
lambda$tickInternal$1(GameTestSequence arg0)
method_23636(class_4693 arg0)
method_23636(TimedTaskRunner runner)
private void
lambda$tickInternal$0(GameTestSequence arg0)
method_23637(class_4693 arg0)
method_23637(TimedTaskRunner runner)
private void
lambda$tick$1(GameTestRunner arg0, GameTestListener arg1)
method_33316(class_4520 arg0, class_4518 arg1)
method_33316(TestRunContext arg0, TestListener listener)
private void
lambda$tick$0(GameTestRunner arg0, GameTestListener arg1)
method_22171(class_4520 arg0, class_4518 arg1)
method_22171(TestRunContext arg0, TestListener listener)
private void
lambda$placeStructure$0(GameTestListener arg0)
method_66952(class_4518 arg0)
method_66952(TestListener listener)