Package net.minecraft.test
Class GameTestState
java.lang.Object
net.minecraft.test.GameTestState
- Mappings:
Namespace Name official rwintermediary net/minecraft/class_4517named net/minecraft/test/GameTestState
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate intprivate booleanprivate final Collection<TestListener> private final BlockRotationprivate booleanprivate longprivate final Stopwatchprivate @Nullable StructureBlockBlockEntityprivate final TestAttemptConfigprivate final TestFunctionprivate longprivate booleanprivate final intprivate final Object2LongMap<Runnable> private final Collection<TimedTaskRunner> private final ServerWorld -
Constructor Summary
ConstructorsConstructorDescriptionGameTestState(TestFunction testFunction, BlockRotation rotation, ServerWorld world, TestAttemptConfig testAttemptConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(TestListener listener) private voidcomplete()voidcopy()(package private) TimedTaskRunnervoidprivate BlockPoslongintgetPos()int(package private) longgetTick()intgetWorld()init()private booleanbooleanbooleanisFailed()booleanisFlaky()booleanbooleanisPassed()booleanbooleanvoidvoidsetBoxMinPos(BlockPos boxMinPos) (package private) voidprivate voidstart()startCountdown(int additionalExpectedStopTime) voidtick(TestRunContext context) private voidtoString()
-
Field Details
-
testFunction
- Mappings:
Namespace Name Mixin selector official aLrw;a:Lsq;intermediary field_20559Lnet/minecraft/class_4517;field_20559:Lnet/minecraft/class_4529;named testFunctionLnet/minecraft/test/GameTestState;testFunction:Lnet/minecraft/test/TestFunction;
-
pos
- Mappings:
Namespace Name Mixin selector official bLrw;b:Lib;intermediary field_20560Lnet/minecraft/class_4517;field_20560:Lnet/minecraft/class_2338;named posLnet/minecraft/test/GameTestState;pos:Lnet/minecraft/util/math/BlockPos;
-
boxMinPos
- Mappings:
Namespace Name Mixin selector official cLrw;c:Lib;intermediary field_48468Lnet/minecraft/class_4517;field_48468:Lnet/minecraft/class_2338;named boxMinPosLnet/minecraft/test/GameTestState;boxMinPos:Lnet/minecraft/util/math/BlockPos;
-
world
- Mappings:
Namespace Name Mixin selector official dLrw;d:Lapf;intermediary field_20561Lnet/minecraft/class_4517;field_20561:Lnet/minecraft/class_3218;named worldLnet/minecraft/test/GameTestState;world:Lnet/minecraft/server/world/ServerWorld;
-
listeners
- Mappings:
Namespace Name Mixin selector official eLrw;e:Ljava/util/Collection;intermediary field_20562Lnet/minecraft/class_4517;field_20562:Ljava/util/Collection;named listenersLnet/minecraft/test/GameTestState;listeners:Ljava/util/Collection;
-
tickLimit
private final int tickLimit- Mappings:
Namespace Name Mixin selector official fLrw;f:Iintermediary field_20563Lnet/minecraft/class_4517;field_20563:Inamed tickLimitLnet/minecraft/test/GameTestState;tickLimit:I
-
timedTaskRunners
- Mappings:
Namespace Name Mixin selector official gLrw;g:Ljava/util/Collection;intermediary field_21452Lnet/minecraft/class_4517;field_21452:Ljava/util/Collection;named timedTaskRunnersLnet/minecraft/test/GameTestState;timedTaskRunners:Ljava/util/Collection;
-
ticksByRunnables
- Mappings:
Namespace Name Mixin selector official hLrw;h:Lit/unimi/dsi/fastutil/objects/Object2LongMap;intermediary field_21453Lnet/minecraft/class_4517;field_21453:Lit/unimi/dsi/fastutil/objects/Object2LongMap;named ticksByRunnablesLnet/minecraft/test/GameTestState;ticksByRunnables:Lit/unimi/dsi/fastutil/objects/Object2LongMap;
-
startTime
private long startTime- Mappings:
Namespace Name Mixin selector official iLrw;i:Jintermediary field_21454Lnet/minecraft/class_4517;field_21454:Jnamed startTimeLnet/minecraft/test/GameTestState;startTime:J
-
initialDelay
private int initialDelay- Mappings:
Namespace Name Mixin selector official jLrw;j:Iintermediary field_47172Lnet/minecraft/class_4517;field_47172:Inamed initialDelayLnet/minecraft/test/GameTestState;initialDelay:I
-
initialized
private boolean initialized- Mappings:
Namespace Name Mixin selector official kLrw;k:Zintermediary field_47173Lnet/minecraft/class_4517;field_47173:Znamed initializedLnet/minecraft/test/GameTestState;initialized:Z
-
tickedOnce
private boolean tickedOnce- Mappings:
Namespace Name Mixin selector official lLrw;l:Zintermediary field_47174Lnet/minecraft/class_4517;field_47174:Znamed tickedOnceLnet/minecraft/test/GameTestState;tickedOnce:Z
-
tick
private long tick- Mappings:
Namespace Name Mixin selector official mLrw;m:Jintermediary field_21455Lnet/minecraft/class_4517;field_21455:Jnamed tickLnet/minecraft/test/GameTestState;tick:J
-
started
private boolean started- Mappings:
Namespace Name Mixin selector official nLrw;n:Zintermediary field_20565Lnet/minecraft/class_4517;field_20565:Znamed startedLnet/minecraft/test/GameTestState;started:Z
-
testAttemptConfig
- Mappings:
Namespace Name Mixin selector official oLrw;o:Lsj;intermediary field_48469Lnet/minecraft/class_4517;field_48469:Lnet/minecraft/class_9118;named testAttemptConfigLnet/minecraft/test/GameTestState;testAttemptConfig:Lnet/minecraft/test/TestAttemptConfig;
-
stopwatch
- Mappings:
Namespace Name Mixin selector official pLrw;p:Lcom/google/common/base/Stopwatch;intermediary field_21456Lnet/minecraft/class_4517;field_21456:Lcom/google/common/base/Stopwatch;named stopwatchLnet/minecraft/test/GameTestState;stopwatch:Lcom/google/common/base/Stopwatch;
-
completed
private boolean completed- Mappings:
Namespace Name Mixin selector official qLrw;q:Zintermediary field_20567Lnet/minecraft/class_4517;field_20567:Znamed completedLnet/minecraft/test/GameTestState;completed:Z
-
rotation
- Mappings:
Namespace Name Mixin selector official rLrw;r:Ldgm;intermediary field_25301Lnet/minecraft/class_4517;field_25301:Lnet/minecraft/class_2470;named rotationLnet/minecraft/test/GameTestState;rotation:Lnet/minecraft/util/BlockRotation;
-
throwable
- Mappings:
Namespace Name Mixin selector official sLrw;s:Ljava/lang/Throwable;intermediary field_20569Lnet/minecraft/class_4517;field_20569:Ljava/lang/Throwable;named throwableLnet/minecraft/test/GameTestState;throwable:Ljava/lang/Throwable;
-
structureBlockEntity
- Mappings:
Namespace Name Mixin selector official tLrw;t:Ldlu;intermediary field_27805Lnet/minecraft/class_4517;field_27805:Lnet/minecraft/class_2633;named structureBlockEntityLnet/minecraft/test/GameTestState;structureBlockEntity:Lnet/minecraft/block/entity/StructureBlockBlockEntity;
-
-
Constructor Details
-
GameTestState
public GameTestState(TestFunction testFunction, BlockRotation rotation, ServerWorld world, TestAttemptConfig testAttemptConfig) - Mappings:
Namespace Name Mixin selector official <init>Lrw;<init>(Lsq;Ldgm;Lapf;Lsj;)Vintermediary <init>Lnet/minecraft/class_4517;<init>(Lnet/minecraft/class_4529;Lnet/minecraft/class_2470;Lnet/minecraft/class_3218;Lnet/minecraft/class_9118;)Vnamed <init>Lnet/minecraft/test/GameTestState;<init>(Lnet/minecraft/test/TestFunction;Lnet/minecraft/util/BlockRotation;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/test/TestAttemptConfig;)V
-
-
Method Details
-
setPos
- Mappings:
Namespace Name Mixin selector official aLrw;a(Lib;)Vintermediary method_23635Lnet/minecraft/class_4517;method_23635(Lnet/minecraft/class_2338;)Vnamed setPosLnet/minecraft/test/GameTestState;setPos(Lnet/minecraft/util/math/BlockPos;)V
-
startCountdown
- Mappings:
Namespace Name Mixin selector official aLrw;a(I)Lrw;intermediary method_23634Lnet/minecraft/class_4517;method_23634(I)Lnet/minecraft/class_4517;named startCountdownLnet/minecraft/test/GameTestState;startCountdown(I)Lnet/minecraft/test/GameTestState;
-
initializeImmediately
- Mappings:
Namespace Name Mixin selector official aLrw;a()Lrw;intermediary method_56213Lnet/minecraft/class_4517;method_56213()Lnet/minecraft/class_4517;named initializeImmediatelyLnet/minecraft/test/GameTestState;initializeImmediately()Lnet/minecraft/test/GameTestState;
-
initialize
private boolean initialize()- Mappings:
Namespace Name Mixin selector official CLrw;C()Zintermediary method_56211Lnet/minecraft/class_4517;method_56211()Znamed initializeLnet/minecraft/test/GameTestState;initialize()Z
-
tick
- Mappings:
Namespace Name Mixin selector official aLrw;a(Lrz;)Vintermediary method_22165Lnet/minecraft/class_4517;method_22165(Lnet/minecraft/class_4520;)Vnamed tickLnet/minecraft/test/GameTestState;tick(Lnet/minecraft/test/TestRunContext;)V
-
tickTests
private void tickTests()- Mappings:
Namespace Name Mixin selector official DLrw;D()Vintermediary method_33315Lnet/minecraft/class_4517;method_33315()Vnamed tickTestsLnet/minecraft/test/GameTestState;tickTests()V
-
start
private void start()- Mappings:
Namespace Name Mixin selector official ELrw;E()Vintermediary method_23639Lnet/minecraft/class_4517;method_23639()Vnamed startLnet/minecraft/test/GameTestState;start()V
-
runAtTick
- Mappings:
Namespace Name Mixin selector official aLrw;a(JLjava/lang/Runnable;)Vintermediary method_36060Lnet/minecraft/class_4517;method_36060(JLjava/lang/Runnable;)Vnamed runAtTickLnet/minecraft/test/GameTestState;runAtTick(JLjava/lang/Runnable;)V
-
getTemplatePath
- Mappings:
Namespace Name Mixin selector official bLrw;b()Ljava/lang/String;intermediary method_22169Lnet/minecraft/class_4517;method_22169()Ljava/lang/String;named getTemplatePathLnet/minecraft/test/GameTestState;getTemplatePath()Ljava/lang/String;
-
getPos
- Mappings:
Namespace Name Mixin selector official cLrw;c()Lib;intermediary method_22172Lnet/minecraft/class_4517;method_22172()Lnet/minecraft/class_2338;named getPosLnet/minecraft/test/GameTestState;getPos()Lnet/minecraft/util/math/BlockPos;
-
getBoundingBox
- Mappings:
Namespace Name Mixin selector official dLrw;d()Lepm;intermediary method_36062Lnet/minecraft/class_4517;method_36062()Lnet/minecraft/class_238;named getBoundingBoxLnet/minecraft/test/GameTestState;getBoundingBox()Lnet/minecraft/util/math/Box;
-
getStructureBlockBlockEntity
- Mappings:
Namespace Name Mixin selector official eLrw;e()Ldlu;intermediary method_36059Lnet/minecraft/class_4517;method_36059()Lnet/minecraft/class_2633;named getStructureBlockBlockEntityLnet/minecraft/test/GameTestState;getStructureBlockBlockEntity()Lnet/minecraft/block/entity/StructureBlockBlockEntity;
-
getWorld
- Mappings:
Namespace Name Mixin selector official fLrw;f()Lapf;intermediary method_22176Lnet/minecraft/class_4517;method_22176()Lnet/minecraft/class_3218;named getWorldLnet/minecraft/test/GameTestState;getWorld()Lnet/minecraft/server/world/ServerWorld;
-
isPassed
public boolean isPassed()- Mappings:
Namespace Name Mixin selector official gLrw;g()Zintermediary method_22177Lnet/minecraft/class_4517;method_22177()Znamed isPassedLnet/minecraft/test/GameTestState;isPassed()Z
-
isFailed
public boolean isFailed()- Mappings:
Namespace Name Mixin selector official hLrw;h()Zintermediary method_22178Lnet/minecraft/class_4517;method_22178()Znamed isFailedLnet/minecraft/test/GameTestState;isFailed()Z
-
isStarted
public boolean isStarted()- Mappings:
Namespace Name Mixin selector official iLrw;i()Zintermediary method_22179Lnet/minecraft/class_4517;method_22179()Znamed isStartedLnet/minecraft/test/GameTestState;isStarted()Z
-
isCompleted
public boolean isCompleted()- Mappings:
Namespace Name Mixin selector official jLrw;j()Zintermediary method_22180Lnet/minecraft/class_4517;method_22180()Znamed isCompletedLnet/minecraft/test/GameTestState;isCompleted()Z
-
getElapsedMilliseconds
public long getElapsedMilliseconds()- Mappings:
Namespace Name Mixin selector official kLrw;k()Jintermediary method_36063Lnet/minecraft/class_4517;method_36063()Jnamed getElapsedMillisecondsLnet/minecraft/test/GameTestState;getElapsedMilliseconds()J
-
complete
private void complete()- Mappings:
Namespace Name Mixin selector official FLrw;F()Vintermediary method_23640Lnet/minecraft/class_4517;method_23640()Vnamed completeLnet/minecraft/test/GameTestState;complete()V
-
completeIfSuccessful
public void completeIfSuccessful()- Mappings:
Namespace Name Mixin selector official lLrw;l()Vintermediary method_36064Lnet/minecraft/class_4517;method_36064()Vnamed completeIfSuccessfulLnet/minecraft/test/GameTestState;completeIfSuccessful()V
-
fail
- Mappings:
Namespace Name Mixin selector official aLrw;a(Ljava/lang/Throwable;)Vintermediary method_22168Lnet/minecraft/class_4517;method_22168(Ljava/lang/Throwable;)Vnamed failLnet/minecraft/test/GameTestState;fail(Ljava/lang/Throwable;)V
-
getThrowable
- Mappings:
Namespace Name Mixin selector official mLrw;m()Ljava/lang/Throwable;intermediary method_22182Lnet/minecraft/class_4517;method_22182()Ljava/lang/Throwable;named getThrowableLnet/minecraft/test/GameTestState;getThrowable()Ljava/lang/Throwable;
-
toString
-
addListener
- Mappings:
Namespace Name Mixin selector official aLrw;a(Lrx;)Vintermediary method_22167Lnet/minecraft/class_4517;method_22167(Lnet/minecraft/class_4518;)Vnamed addListenerLnet/minecraft/test/GameTestState;addListener(Lnet/minecraft/test/TestListener;)V
-
init
- Mappings:
Namespace Name Mixin selector official nLrw;n()Lrw;intermediary method_22166Lnet/minecraft/class_4517;method_22166()Lnet/minecraft/class_4517;named initLnet/minecraft/test/GameTestState;init()Lnet/minecraft/test/GameTestState;
-
getTick
long getTick()- Mappings:
Namespace Name Mixin selector official oLrw;o()Jintermediary method_36065Lnet/minecraft/class_4517;method_36065()Jnamed getTickLnet/minecraft/test/GameTestState;getTick()J
-
createTimedTaskRunner
TimedTaskRunner createTimedTaskRunner()- Mappings:
Namespace Name Mixin selector official pLrw;p()Lsa;intermediary method_36066Lnet/minecraft/class_4517;method_36066()Lnet/minecraft/class_4693;named createTimedTaskRunnerLnet/minecraft/test/GameTestState;createTimedTaskRunner()Lnet/minecraft/test/TimedTaskRunner;
-
isRequired
public boolean isRequired()- Mappings:
Namespace Name Mixin selector official qLrw;q()Zintermediary method_22183Lnet/minecraft/class_4517;method_22183()Znamed isRequiredLnet/minecraft/test/GameTestState;isRequired()Z
-
isOptional
public boolean isOptional()- Mappings:
Namespace Name Mixin selector official rLrw;r()Zintermediary method_22184Lnet/minecraft/class_4517;method_22184()Znamed isOptionalLnet/minecraft/test/GameTestState;isOptional()Z
-
getTemplateName
- Mappings:
Namespace Name Mixin selector official sLrw;s()Ljava/lang/String;intermediary method_23638Lnet/minecraft/class_4517;method_23638()Ljava/lang/String;named getTemplateNameLnet/minecraft/test/GameTestState;getTemplateName()Ljava/lang/String;
-
getRotation
- Mappings:
Namespace Name Mixin selector official tLrw;t()Ldgm;intermediary method_29402Lnet/minecraft/class_4517;method_29402()Lnet/minecraft/class_2470;named getRotationLnet/minecraft/test/GameTestState;getRotation()Lnet/minecraft/util/BlockRotation;
-
getTestFunction
- Mappings:
Namespace Name Mixin selector official uLrw;u()Lsq;intermediary method_29403Lnet/minecraft/class_4517;method_29403()Lnet/minecraft/class_4529;named getTestFunctionLnet/minecraft/test/GameTestState;getTestFunction()Lnet/minecraft/test/TestFunction;
-
getTickLimit
public int getTickLimit()- Mappings:
Namespace Name Mixin selector official vLrw;v()Iintermediary method_36067Lnet/minecraft/class_4517;method_36067()Inamed getTickLimitLnet/minecraft/test/GameTestState;getTickLimit()I
-
isFlaky
public boolean isFlaky()- Mappings:
Namespace Name Mixin selector official wLrw;w()Zintermediary method_32241Lnet/minecraft/class_4517;method_32241()Znamed isFlakyLnet/minecraft/test/GameTestState;isFlaky()Z
-
getMaxAttempts
public int getMaxAttempts()- Mappings:
Namespace Name Mixin selector official xLrw;x()Iintermediary method_32242Lnet/minecraft/class_4517;method_32242()Inamed getMaxAttemptsLnet/minecraft/test/GameTestState;getMaxAttempts()I
-
getRequiredSuccesses
public int getRequiredSuccesses()- Mappings:
Namespace Name Mixin selector official yLrw;y()Iintermediary method_32243Lnet/minecraft/class_4517;method_32243()Inamed getRequiredSuccessesLnet/minecraft/test/GameTestState;getRequiredSuccesses()I
-
getTestAttemptConfig
- Mappings:
Namespace Name Mixin selector official zLrw;z()Lsj;intermediary method_56215Lnet/minecraft/class_4517;method_56215()Lnet/minecraft/class_9118;named getTestAttemptConfigLnet/minecraft/test/GameTestState;getTestAttemptConfig()Lnet/minecraft/test/TestAttemptConfig;
-
streamListeners
- Mappings:
Namespace Name Mixin selector official ALrw;A()Ljava/util/stream/Stream;intermediary method_56209Lnet/minecraft/class_4517;method_56209()Ljava/util/stream/Stream;named streamListenersLnet/minecraft/test/GameTestState;streamListeners()Ljava/util/stream/Stream;
-
copy
- Mappings:
Namespace Name Mixin selector official BLrw;B()Lrw;intermediary method_56210Lnet/minecraft/class_4517;method_56210()Lnet/minecraft/class_4517;named copyLnet/minecraft/test/GameTestState;copy()Lnet/minecraft/test/GameTestState;
-
getBoxMinPos
- Mappings:
Namespace Name Mixin selector official GLrw;G()Lib;intermediary method_56212Lnet/minecraft/class_4517;method_56212()Lnet/minecraft/class_2338;named getBoxMinPosLnet/minecraft/test/GameTestState;getBoxMinPos()Lnet/minecraft/util/math/BlockPos;
-
setBoxMinPos
- Mappings:
Namespace Name Mixin selector official bLrw;b(Lib;)Vintermediary method_56214Lnet/minecraft/class_4517;method_56214(Lnet/minecraft/class_2338;)Vnamed setBoxMinPosLnet/minecraft/test/GameTestState;setBoxMinPos(Lnet/minecraft/util/math/BlockPos;)V
-