Package net.minecraft.gametest.framework
Class GameTestInfo
java.lang.Object
net.minecraft.gametest.framework.GameTestInfo
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private boolean
private Throwable
private final ServerLevel
private final Collection<GameTestListener>
private boolean
private boolean
private final Rotation
private final it.unimi.dsi.fastutil.objects.Object2LongMap<Runnable>
final Collection<GameTestSequence>
private boolean
private long
private StructureBlockEntity
private BlockPos
private final TestFunction
private long
private int
private final int
private final com.google.common.base.Stopwatch
-
Constructor Summary
ConstructorDescriptionGameTestInfo
(TestFunction p_127613_, Rotation p_127614_, ServerLevel p_127615_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(GameTestListener p_127625_) void
(package private) GameTestSequence
void
private void
finish()
getError()
getLevel()
long
private StructureBlockEntity
(package private) long
getTick()
int
boolean
boolean
boolean
boolean
isDone()
boolean
isFlaky()
boolean
boolean
int
void
prepareTestStructure
(BlockPos p_309710_) int
boolean
void
setRerunUntilFailed
(boolean p_304843_) void
setRunAtTickTime
(long p_177473_, Runnable p_177474_) (package private) void
setStructureBlockPos
(BlockPos p_127618_) (package private) void
private void
void
succeed()
void
tick()
private void
toString()
-
Field Details
-
testFunction
-
structureBlockPos
-
level
-
listeners
-
timeoutTicks
private final int timeoutTicks -
sequences
-
runAtTickTimeMap
-
startTick
private long startTick -
ticksToWaitForChunkLoading
private int ticksToWaitForChunkLoading -
placedStructure
private boolean placedStructure -
chunksLoaded
private boolean chunksLoaded -
tickCount
private long tickCount -
started
private boolean started -
rerunUntilFailed
private boolean rerunUntilFailed -
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
-
getStructureOrigin
-
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
-
prepareTestStructure
-
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() -
setRerunUntilFailed
public void setRerunUntilFailed(boolean p_304843_) -
rerunUntilFailed
public boolean rerunUntilFailed()
-