Class GameTestInfo

java.lang.Object
net.minecraft.gametest.framework.GameTestInfo

public class GameTestInfo extends Object
  • Field Details

    • testFunction

      private final TestFunction testFunction
    • structureBlockPos

      @Nullable private BlockPos structureBlockPos
    • northWestCorner

      @Nullable private BlockPos northWestCorner
    • level

      private final ServerLevel level
    • listeners

      private final Collection<GameTestListener> listeners
    • timeoutTicks

      private final int timeoutTicks
    • sequences

      private final Collection<GameTestSequence> sequences
    • runAtTickTimeMap

      private final it.unimi.dsi.fastutil.objects.Object2LongMap<Runnable> 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

      private final RetryOptions retryOptions
    • timer

      private final com.google.common.base.Stopwatch timer
    • done

      private boolean done
    • rotation

      private final Rotation rotation
    • error

      @Nullable private Throwable error
    • structureBlockEntity

      @Nullable private StructureBlockEntity structureBlockEntity
  • Constructor Details

  • Method Details

    • setStructureBlockPos

      void setStructureBlockPos(BlockPos p_127618_)
    • startExecution

      public GameTestInfo startExecution(int p_329736_)
    • placeStructure

      public GameTestInfo placeStructure()
    • ensureStructureIsPlaced

      private boolean ensureStructureIsPlaced()
    • tick

      public void tick(GameTestRunner p_334539_)
    • tickInternal

      private void tickInternal()
    • startTest

      private void startTest()
    • setRunAtTickTime

      public void setRunAtTickTime(long p_177473_, Runnable p_177474_)
    • getTestName

      public String getTestName()
    • getStructureBlockPos

      @Nullable public BlockPos getStructureBlockPos()
    • getStructureBounds

      public AABB getStructureBounds()
    • getStructureBlockEntity

      public StructureBlockEntity getStructureBlockEntity()
    • getLevel

      public ServerLevel 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

      public void fail(Throwable p_127623_)
    • getError

      @Nullable public Throwable getError()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • addListener

      public void addListener(GameTestListener p_127625_)
    • prepareTestStructure

      public GameTestInfo prepareTestStructure()
    • getTick

      long getTick()
    • createSequence

      GameTestSequence createSequence()
    • isRequired

      public boolean isRequired()
    • isOptional

      public boolean isOptional()
    • getStructureName

      public String getStructureName()
    • getRotation

      public Rotation getRotation()
    • getTestFunction

      public TestFunction getTestFunction()
    • getTimeoutTicks

      public int getTimeoutTicks()
    • isFlaky

      public boolean isFlaky()
    • maxAttempts

      public int maxAttempts()
    • requiredSuccesses

      public int requiredSuccesses()
    • retryOptions

      public RetryOptions retryOptions()
    • getListeners

      public Stream<GameTestListener> getListeners()
    • copyReset

      public GameTestInfo copyReset()
    • getOrCalculateNorthwestCorner

      private BlockPos getOrCalculateNorthwestCorner()
    • setNorthWestCorner

      public void setNorthWestCorner(BlockPos p_328918_)