Package net.minecraft.gametest.framework
Class GameTestInfo
java.lang.Object
net.minecraft.gametest.framework.GameTestInfo
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate Throwableprivate final ServerLevelprivate final Collection<GameTestListener>private final Rotationprivate final it.unimi.dsi.fastutil.objects.Object2LongMap<Runnable>private final Collection<GameTestSequence>private booleanprivate longprivate StructureBlockEntityprivate BlockPosprivate final TestFunctionprivate longprivate final intprivate final com.google.common.base.Stopwatch - 
Constructor Summary
ConstructorsConstructorDescriptionGameTestInfo(TestFunction p_127613_, Rotation p_127614_, ServerLevel p_127615_)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(GameTestListener p_127625_) void(package private) GameTestSequencevoidprivate voidfinish()getError()getLevel()longprivate StructureBlockEntity(package private) longgetTick()intbooleanbooleanbooleanbooleanisDone()booleanisFlaky()booleanbooleanintintvoidsetRunAtTickTime(long p_177473_, Runnable p_177474_) (package private) voidsetStructureBlockPos(BlockPos p_127618_) voidspawnStructure(BlockPos p_127620_, int p_127621_) (package private) voidprivate voidvoidsucceed()voidtick()private voidtoString() 
- 
Field Details
- 
testFunction
 - 
structureBlockPos
 - 
level
 - 
listeners
 - 
timeoutTicks
private final int timeoutTicks - 
sequences
 - 
runAtTickTimeMap
 - 
startTick
private long startTick - 
tickCount
private long tickCount - 
started
private boolean started - 
timer
private final com.google.common.base.Stopwatch timer - 
done
private boolean done - 
rotation
 - 
error
 - 
structureBlockEntity
 
 - 
 - 
Constructor Details
- 
GameTestInfo
 
 - 
 - 
Method Details
- 
setStructureBlockPos
 - 
startExecution
void startExecution() - 
tick
public void tick() - 
tickInternal
private void tickInternal() - 
startTest
private void startTest() - 
setRunAtTickTime
 - 
getTestName
 - 
getStructureBlockPos
 - 
getStructureSize
 - 
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
 - 
spawnStructure
 - 
clearStructure
public void clearStructure() - 
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() 
 -