Class GameTestInfo
java.lang.Object
net.minecraft.gametest.framework.GameTestInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate @Nullable GameTestExceptionprivate final Rotationprivate final ServerLevelprivate final Collection<GameTestListener> private booleanprivate final RetryOptionsprivate final it.unimi.dsi.fastutil.objects.Object2LongMap<Runnable> final Collection<GameTestSequence> private booleanprivate final Holder.Reference<GameTestInstance> private @Nullable BlockPosprivate @Nullable TestInstanceBlockEntityprivate intprivate final intprivate final Stopwatch -
Constructor Summary
ConstructorsConstructorDescriptionGameTestInfo(Holder.Reference<GameTestInstance> test, Rotation extraRotation, ServerLevel level, RetryOptions retryOptions) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(GameTestListener listener) (package private) GameTestSequenceprivate @Nullable TestInstanceBlockEntitycreateTestInstanceBlock(BlockPos testPos, Rotation rotation, ServerLevel level) voidfail(GameTestException error) voidprivate voidfinish()@Nullable GameTestExceptiongetError()getLevel()longgetTest()@Nullable BlockPos(package private) intgetTick()intbooleanbooleanbooleanid()booleanisDone()booleanisFlaky()booleanbooleanintvoid@Nullable GameTestInfointvoidsetRunAtTickTime(long time, Runnable assertAtTickTime) voidsetTestBlockPos(@Nullable BlockPos testBlockPos) startExecution(int tickDelay) private voidvoidsucceed()voidtick(GameTestRunner runner) private voidtoString()
-
Field Details
-
test
-
testBlockPos
-
level
-
listeners
-
timeoutTicks
private final int timeoutTicks -
sequences
-
runAtTickTimeMap
-
placedStructure
private boolean placedStructure -
chunksLoaded
private boolean chunksLoaded -
tickCount
private int tickCount -
started
private boolean started -
retryOptions
-
timer
-
done
private boolean done -
extraRotation
-
error
-
testInstanceBlockEntity
-
-
Constructor Details
-
GameTestInfo
public GameTestInfo(Holder.Reference<GameTestInstance> test, Rotation extraRotation, ServerLevel level, RetryOptions retryOptions)
-
-
Method Details
-
setTestBlockPos
-
startExecution
-
placeStructure
public void placeStructure() -
tick
-
tickInternal
private void tickInternal() -
startTest
private void startTest() -
setRunAtTickTime
-
id
-
getTestBlockPos
-
getTestOrigin
-
getStructureBounds
-
getTestInstanceBlockEntity
-
getLevel
-
hasSucceeded
public boolean hasSucceeded() -
hasFailed
public boolean hasFailed() -
hasStarted
public boolean hasStarted() -
isDone
public boolean isDone() -
getRunTime
public long getRunTime() -
finish
private void finish() -
succeed
public void succeed() -
fail
-
fail
-
getError
-
toString
-
addListener
-
prepareTestStructure
-
createTestInstanceBlock
private @Nullable TestInstanceBlockEntity createTestInstanceBlock(BlockPos testPos, Rotation rotation, ServerLevel level) -
getTick
int getTick() -
createSequence
GameTestSequence createSequence() -
isRequired
public boolean isRequired() -
isOptional
public boolean isOptional() -
getStructure
-
getRotation
-
getTest
-
getTestHolder
-
getTimeoutTicks
public int getTimeoutTicks() -
isFlaky
public boolean isFlaky() -
maxAttempts
public int maxAttempts() -
requiredSuccesses
public int requiredSuccesses() -
retryOptions
-
getListeners
-
copyReset
-