Package net.minecraft.gametest.framework
Class GameTestInfo
java.lang.Object
net.minecraft.gametest.framework.GameTestInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private boolean
private GameTestException
private final Rotation
private final ServerLevel
private final Collection
<GameTestListener> private boolean
private final RetryOptions
private final it.unimi.dsi.fastutil.objects.Object2LongMap
<Runnable> final Collection
<GameTestSequence> private boolean
private final Holder.Reference
<GameTestInstance> private BlockPos
private TestInstanceBlockEntity
private int
private final int
private final com.google.common.base.Stopwatch
-
Constructor Summary
ConstructorsConstructorDescriptionGameTestInfo
(Holder.Reference<GameTestInstance> pTest, Rotation pRotation, ServerLevel pLevel, RetryOptions pRetryOptions) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(GameTestListener pListener) (package private) GameTestSequence
private TestInstanceBlockEntity
createTestInstanceBlock
(BlockPos pPos, Rotation pRotation, ServerLevel pLevel) void
fail
(GameTestException pError) void
private void
finish()
getError()
getLevel()
long
getTest()
(package private) int
getTick()
int
boolean
boolean
boolean
id()
boolean
isDone()
boolean
isFlaky()
boolean
boolean
int
void
int
void
setRunAtTickTime
(long pTickTime, Runnable pTask) void
setTestBlockPos
(BlockPos pTestBlockPos) startExecution
(int pDelay) private void
void
succeed()
void
tick
(GameTestRunner pRunner) private void
toString()
-
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
private final com.google.common.base.Stopwatch 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
-