Class TestTracker


  • public class TestTracker
    extends java.lang.Object
    • Field Detail

      • structureBlockPos

        @Nullable
        private BlockPos structureBlockPos
      • listeners

        private final java.util.Collection<ITestCallback> listeners
      • timeoutTicks

        private final int timeoutTicks
      • sequences

        private final java.util.Collection<TestList> sequences
      • runAtTickTimeMap

        private it.unimi.dsi.fastutil.objects.Object2LongMap<java.lang.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 java.lang.Throwable error
    • Method Detail

      • setStructureBlockPos

        void setStructureBlockPos​(BlockPos p_229503_1_)
      • startExecution

        void startExecution()
      • tick

        public void tick()
      • startTest

        private void startTest()
      • getTestName

        public java.lang.String getTestName()
      • getStructureBlockPos

        public BlockPos getStructureBlockPos()
      • hasSucceeded

        public boolean hasSucceeded()
      • hasFailed

        public boolean hasFailed()
      • hasStarted

        public boolean hasStarted()
      • isDone

        public boolean isDone()
      • finish

        private void finish()
      • fail

        public void fail​(java.lang.Throwable p_229506_1_)
      • getError

        @Nullable
        public java.lang.Throwable getError()
      • toString

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

        public Rotation getRotation()