Package net.minecraft.test
Class TestTracker
java.lang.Object
net.minecraft.test.TestTracker
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private Throwable
private final ServerWorld
private final Collection<ITestCallback>
private final Rotation
private it.unimi.dsi.fastutil.objects.Object2LongMap<Runnable>
private final Collection<TestList>
private boolean
private long
private BlockPos
private final TestFunctionInfo
private long
private final int
private final com.google.common.base.Stopwatch
-
Constructor Summary
ConstructorDescriptionTestTracker
(TestFunctionInfo p_i232556_1_, Rotation p_i232556_2_, ServerWorld p_i232556_3_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(ITestCallback p_229504_1_) void
private void
finish()
getError()
getLevel()
boolean
boolean
boolean
boolean
isDone()
boolean
boolean
(package private) void
setStructureBlockPos
(BlockPos p_229503_1_) void
spawnStructure
(BlockPos p_240543_1_, int p_240543_2_) (package private) void
private void
void
tick()
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
-