Package net.minecraft.test
Class TestTracker
java.lang.Object
net.minecraft.test.TestTracker
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate Throwableprivate final ServerWorldprivate final Collection<ITestCallback>private final Rotationprivate it.unimi.dsi.fastutil.objects.Object2LongMap<Runnable>private final Collection<TestList>private booleanprivate longprivate BlockPosprivate final TestFunctionInfoprivate longprivate final intprivate final com.google.common.base.Stopwatch -
Constructor Summary
ConstructorsConstructorDescriptionTestTracker(TestFunctionInfo p_i232556_1_, Rotation p_i232556_2_, ServerWorld p_i232556_3_) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(ITestCallback p_229504_1_) voidprivate voidfinish()getError()getLevel()booleanbooleanbooleanbooleanisDone()booleanboolean(package private) voidsetStructureBlockPos(BlockPos p_229503_1_) voidspawnStructure(BlockPos p_240543_1_, int p_240543_2_) (package private) voidprivate voidvoidtick()toString()
-
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
-
-
Constructor Details
-
TestTracker
-
-
Method Details
-
setStructureBlockPos
-
startExecution
void startExecution() -
tick
public void tick() -
startTest
private void startTest() -
getTestName
-
getStructureBlockPos
-
getLevel
-
hasSucceeded
public boolean hasSucceeded() -
hasFailed
public boolean hasFailed() -
hasStarted
public boolean hasStarted() -
isDone
public boolean isDone() -
finish
private void finish() -
fail
-
getError
-
toString
-
addListener
-
spawnStructure
-
isRequired
public boolean isRequired() -
isOptional
public boolean isOptional() -
getStructureName
-
getRotation
-
getTestFunction
-