Class TestTracker

java.lang.Object
net.minecraft.test.TestTracker

public class TestTracker extends Object
  • Field Details

    • testFunction

      private final TestFunctionInfo testFunction
    • structureBlockPos

      @Nullable private BlockPos structureBlockPos
    • level

      private final ServerWorld level
    • listeners

      private final Collection<ITestCallback> listeners
    • timeoutTicks

      private final int timeoutTicks
    • sequences

      private final Collection<TestList> sequences
    • runAtTickTimeMap

      private it.unimi.dsi.fastutil.objects.Object2LongMap<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 Throwable error
  • Constructor Details

  • Method Details

    • setStructureBlockPos

      void setStructureBlockPos(BlockPos p_229503_1_)
    • startExecution

      void startExecution()
    • tick

      public void tick()
    • startTest

      private void startTest()
    • getTestName

      public 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(Throwable p_229506_1_)
    • getError

      @Nullable public Throwable getError()
    • toString

      public String toString()
      Overrides:
      toString in class 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 String getStructureName()
    • getRotation

      public Rotation getRotation()
    • getTestFunction

      public TestFunctionInfo getTestFunction()