Package net.minecraft.gametest.framework
Class GameTestInfo
java.lang.Object
net.minecraft.gametest.framework.GameTestInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate Throwableprivate final ServerLevelprivate final Collection<GameTestListener> private BlockPosprivate booleanprivate final RetryOptionsprivate final Rotationprivate final it.unimi.dsi.fastutil.objects.Object2LongMap<Runnable> final Collection<GameTestSequence> private booleanprivate longprivate StructureBlockEntityprivate BlockPosprivate final TestFunctionprivate longprivate intprivate final intprivate final Stopwatch -
Constructor Summary
ConstructorsConstructorDescriptionGameTestInfo(TestFunction pTestFunction, Rotation pRotation, ServerLevel pLevel, RetryOptions pRetryOptions) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(GameTestListener pListener) (package private) GameTestSequenceprivate booleanvoidprivate voidfinish()getError()getLevel()private BlockPoslong(package private) longgetTick()intbooleanbooleanbooleanbooleanisDone()booleanisFlaky()booleanbooleanintintvoidsetNorthWestCorner(BlockPos pNorthWestCorner) voidsetRunAtTickTime(long pTickTime, Runnable pTask) (package private) voidsetStructureBlockPos(BlockPos pPos) startExecution(int pDelay) private voidvoidsucceed()voidtick(GameTestRunner pRunner) private voidtoString()
-
Field Details
-
testFunction
-
structureBlockPos
-
northWestCorner
-
level
-
listeners
-
timeoutTicks
private final int timeoutTicks -
sequences
-
runAtTickTimeMap
-
startTick
private long startTick -
ticksToWaitForChunkLoading
private int ticksToWaitForChunkLoading -
placedStructure
private boolean placedStructure -
chunksLoaded
private boolean chunksLoaded -
tickCount
private long tickCount -
started
private boolean started -
retryOptions
-
timer
-
done
private boolean done -
rotation
-
error
-
structureBlockEntity
-
-
Constructor Details
-
GameTestInfo
public GameTestInfo(TestFunction pTestFunction, Rotation pRotation, ServerLevel pLevel, RetryOptions pRetryOptions)
-
-
Method Details
-
setStructureBlockPos
-
startExecution
-
placeStructure
-
ensureStructureIsPlaced
private boolean ensureStructureIsPlaced() -
tick
-
tickInternal
private void tickInternal() -
startTest
private void startTest() -
setRunAtTickTime
-
getTestName
-
getStructureBlockPos
-
getStructureBounds
-
getStructureBlockEntity
-
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
-
getError
-
toString
-
addListener
-
prepareTestStructure
-
getTick
long getTick() -
createSequence
GameTestSequence createSequence() -
isRequired
public boolean isRequired() -
isOptional
public boolean isOptional() -
getStructureName
-
getRotation
-
getTestFunction
-
getTimeoutTicks
public int getTimeoutTicks() -
isFlaky
public boolean isFlaky() -
maxAttempts
public int maxAttempts() -
requiredSuccesses
public int requiredSuccesses() -
retryOptions
-
getListeners
-
copyReset
-
getOrCalculateNorthwestCorner
-
setNorthWestCorner
-