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> p_397184_, Rotation p_127614_, ServerLevel p_127615_, RetryOptions p_320308_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(GameTestListener p_127625_) (package private) GameTestSequence
private TestInstanceBlockEntity
createTestInstanceBlock
(BlockPos p_397898_, Rotation p_397556_, ServerLevel p_397673_) void
fail
(GameTestException p_401164_) 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 p_177473_, Runnable p_177474_) void
setTestBlockPos
(BlockPos p_397520_) startExecution
(int p_320211_) private void
void
succeed()
void
tick
(GameTestRunner p_320062_) 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> p_397184_, Rotation p_127614_, ServerLevel p_127615_, RetryOptions p_320308_)
-
-
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 TestInstanceBlockEntity createTestInstanceBlock(BlockPos p_397898_, Rotation p_397556_, ServerLevel p_397673_) -
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
-