Package net.minecraft.test
Class TestTracker
- java.lang.Object
-
- net.minecraft.test.TestTracker
-
public class TestTracker extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
done
private java.lang.Throwable
error
private ServerWorld
level
private java.util.Collection<ITestCallback>
listeners
private Rotation
rotation
private it.unimi.dsi.fastutil.objects.Object2LongMap<java.lang.Runnable>
runAtTickTimeMap
private java.util.Collection<TestList>
sequences
private boolean
started
private long
startTick
private BlockPos
structureBlockPos
private TestFunctionInfo
testFunction
private long
tickCount
private int
timeoutTicks
private com.google.common.base.Stopwatch
timer
-
Constructor Summary
Constructors Constructor Description TestTracker(TestFunctionInfo p_i232556_1_, Rotation p_i232556_2_, ServerWorld p_i232556_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(ITestCallback p_229504_1_)
void
fail(java.lang.Throwable p_229506_1_)
private void
finish()
java.lang.Throwable
getError()
ServerWorld
getLevel()
Rotation
getRotation()
BlockPos
getStructureBlockPos()
java.lang.String
getStructureName()
TestFunctionInfo
getTestFunction()
java.lang.String
getTestName()
boolean
hasFailed()
boolean
hasStarted()
boolean
hasSucceeded()
boolean
isDone()
boolean
isOptional()
boolean
isRequired()
(package private) void
setStructureBlockPos(BlockPos p_229503_1_)
void
spawnStructure(BlockPos p_240543_1_, int p_240543_2_)
(package private) void
startExecution()
private void
startTest()
void
tick()
java.lang.String
toString()
-
-
-
Field Detail
-
testFunction
private final TestFunctionInfo testFunction
-
structureBlockPos
@Nullable private BlockPos structureBlockPos
-
level
private final ServerWorld level
-
listeners
private final java.util.Collection<ITestCallback> listeners
-
timeoutTicks
private final int timeoutTicks
-
sequences
private final java.util.Collection<TestList> sequences
-
runAtTickTimeMap
private it.unimi.dsi.fastutil.objects.Object2LongMap<java.lang.Runnable> 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
private final Rotation rotation
-
error
@Nullable private java.lang.Throwable error
-
-
Constructor Detail
-
TestTracker
public TestTracker(TestFunctionInfo p_i232556_1_, Rotation p_i232556_2_, ServerWorld p_i232556_3_)
-
-
Method Detail
-
setStructureBlockPos
void setStructureBlockPos(BlockPos p_229503_1_)
-
startExecution
void startExecution()
-
tick
public void tick()
-
startTest
private void startTest()
-
getTestName
public java.lang.String getTestName()
-
getStructureBlockPos
public BlockPos getStructureBlockPos()
-
getLevel
public ServerWorld getLevel()
-
hasSucceeded
public boolean hasSucceeded()
-
hasFailed
public boolean hasFailed()
-
hasStarted
public boolean hasStarted()
-
isDone
public boolean isDone()
-
finish
private void finish()
-
fail
public void fail(java.lang.Throwable p_229506_1_)
-
getError
@Nullable public java.lang.Throwable getError()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
addListener
public void addListener(ITestCallback p_229504_1_)
-
spawnStructure
public void spawnStructure(BlockPos p_240543_1_, int p_240543_2_)
-
isRequired
public boolean isRequired()
-
isOptional
public boolean isOptional()
-
getStructureName
public java.lang.String getStructureName()
-
getRotation
public Rotation getRotation()
-
getTestFunction
public TestFunctionInfo getTestFunction()
-
-