类 GameTestInfo
java.lang.Object
net.minecraft.gametest.framework.GameTestInfo
-
字段概要
字段修饰符和类型字段说明private boolean
private boolean
private Throwable
private final ServerLevel
private final Collection
<GameTestListener> private BlockPos
private boolean
private final RetryOptions
private final Rotation
private final it.unimi.dsi.fastutil.objects.Object2LongMap
<Runnable> private 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
-
构造器概要
构造器构造器说明GameTestInfo
(TestFunction p_127613_, Rotation p_127614_, ServerLevel p_127615_, RetryOptions p_328909_) -
方法概要
修饰符和类型方法说明void
addListener
(GameTestListener p_127625_) (专用程序包) GameTestSequence
private boolean
void
private void
finish()
getError()
getLevel()
long
(专用程序包) long
getTick()
int
boolean
boolean
boolean
boolean
isDone()
boolean
isFlaky()
boolean
boolean
int
int
void
setNorthWestCorner
(BlockPos p_328918_) void
setRunAtTickTime
(long p_177473_, Runnable p_177474_) (专用程序包) void
setStructureBlockPos
(BlockPos p_127618_) startExecution
(int p_329736_) private void
void
succeed()
void
tick
(GameTestRunner p_334539_) private void
toString()
-
字段详细资料
-
testFunction
-
structureBlockPos
-
northWestCorner
-
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 -
retryOptions
-
timer
private final com.google.common.base.Stopwatch timer -
done
private boolean done -
rotation
-
error
-
structureBlockEntity
-
-
构造器详细资料
-
GameTestInfo
public GameTestInfo(TestFunction p_127613_, Rotation p_127614_, ServerLevel p_127615_, RetryOptions p_328909_)
-
-
方法详细资料
-
setStructureBlockPos
-
startExecution
-
placeStructure
-
ensureStructureIsPlaced
private boolean ensureStructureIsPlaced() -
tick
-
tickInternal
private void tickInternal() -
startTest
private void startTest() -
setRunAtTickTime
-
getTestName
-
getStructureBlockPos
-
getTestOrigin
-
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
-
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() -
retryOptions
-
getListeners
-
copyReset
-
getOrCalculateNorthwestCorner
-
setNorthWestCorner
-