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
    • 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
    • rerunUntilFailed

      private boolean rerunUntilFailed
    • 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

      void startExecution()
    • tick

      public void tick()
    • tickInternal

      private void tickInternal()
    • startTest

      private void startTest()
    • setRunAtTickTime

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

      public String getTestName()
    • getStructureBlockPos

      public BlockPos getStructureBlockPos()
    • getStructureOrigin

      @Nullable public BlockPos getStructureOrigin()
    • getStructureSize

      @Nullable public Vec3i getStructureSize()
    • getStructureBounds

      @Nullable public AABB getStructureBounds()
    • getStructureBlockEntity

      @Nullable private 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 void prepareTestStructure(BlockPos p_313154_)
    • clearStructure

      public void clearStructure()
    • 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()
    • setRerunUntilFailed

      public void setRerunUntilFailed(boolean p_312010_)
    • rerunUntilFailed

      public boolean rerunUntilFailed()