Package net.minecraft.gametest.framework
Class GameTestInfo
java.lang.Object
net.minecraft.gametest.framework.GameTestInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate 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 BlockPosprivate TestInstanceBlockEntityprivate intprivate final intprivate final Stopwatch -
Constructor Summary
ConstructorsConstructorDescriptionGameTestInfo(Holder.Reference<GameTestInstance> pTest, Rotation pRotation, ServerLevel pLevel, RetryOptions pRetryOptions) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(GameTestListener pListener) (package private) GameTestSequenceprivate TestInstanceBlockEntitycreateTestInstanceBlock(BlockPos pPos, Rotation pRotation, ServerLevel pLevel) voidfail(GameTestException pError) voidprivate voidfinish()getError()getLevel()longgetTest()(package private) intgetTick()intbooleanbooleanbooleanid()booleanisDone()booleanisFlaky()booleanbooleanintvoidintvoidsetRunAtTickTime(long pTickTime, Runnable pTask) voidsetTestBlockPos(BlockPos pTestBlockPos) startExecution(int pDelay) private voidvoidsucceed()voidtick(GameTestRunner pRunner) 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> pTest, Rotation pRotation, ServerLevel pLevel, RetryOptions pRetryOptions)
-
-
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
@Nullable private TestInstanceBlockEntity createTestInstanceBlock(BlockPos pPos, Rotation pRotation, ServerLevel pLevel) -
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
-