Class GameTestInfo

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

public class GameTestInfo extends Object
  • Field Details

    • test

      private final Holder.Reference<GameTestInstance> test
    • testBlockPos

      @Nullable private BlockPos testBlockPos
    • level

      private final ServerLevel level
    • listeners

      private final Collection<GameTestListener> listeners
    • timeoutTicks

      private final int timeoutTicks
    • sequences

      public final Collection<GameTestSequence> sequences
    • runAtTickTimeMap

      private final it.unimi.dsi.fastutil.objects.Object2LongMap<Runnable> runAtTickTimeMap
    • placedStructure

      private boolean placedStructure
    • chunksLoaded

      private boolean chunksLoaded
    • tickCount

      private int tickCount
    • started

      private boolean started
    • retryOptions

      private final RetryOptions retryOptions
    • timer

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

      private boolean done
    • extraRotation

      private final Rotation extraRotation
    • error

      @Nullable private GameTestException error
    • testInstanceBlockEntity

      @Nullable private TestInstanceBlockEntity testInstanceBlockEntity
  • Constructor Details

  • Method Details

    • setTestBlockPos

      public void setTestBlockPos(@Nullable BlockPos p_397520_)
    • startExecution

      public GameTestInfo startExecution(int p_320211_)
    • placeStructure

      public void placeStructure()
    • tick

      public void tick(GameTestRunner p_320062_)
    • tickInternal

      private void tickInternal()
    • startTest

      private void startTest()
    • setRunAtTickTime

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

      public ResourceLocation id()
    • getTestBlockPos

      @Nullable public BlockPos getTestBlockPos()
    • getTestOrigin

      public BlockPos getTestOrigin()
    • getStructureBounds

      public AABB getStructureBounds()
    • getTestInstanceBlockEntity

      public TestInstanceBlockEntity getTestInstanceBlockEntity()
    • 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(Component p_401340_)
    • fail

      public void fail(GameTestException p_401164_)
    • getError

      @Nullable public GameTestException getError()
    • toString

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

      public void addListener(GameTestListener p_127625_)
    • prepareTestStructure

      public GameTestInfo prepareTestStructure()
    • createTestInstanceBlock

      private TestInstanceBlockEntity createTestInstanceBlock(BlockPos p_397898_, Rotation p_397556_, ServerLevel p_397673_)
    • getTick

      int getTick()
    • createSequence

      GameTestSequence createSequence()
    • isRequired

      public boolean isRequired()
    • isOptional

      public boolean isOptional()
    • getStructure

      public ResourceLocation getStructure()
    • getRotation

      public Rotation getRotation()
    • getTest

      public GameTestInstance getTest()
    • getTestHolder

      public Holder.Reference<GameTestInstance> getTestHolder()
    • 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()