Package net.minecraft.test
Class GameTestState
java.lang.Object
net.minecraft.test.GameTestState
- Mappings:
Namespace Name named net/minecraft/test/GameTestState
intermediary net/minecraft/class_4517
official sw
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private int
private boolean
private final Collection
<TestListener> private final BlockRotation
private boolean
private long
private final Stopwatch
private @Nullable StructureBlockBlockEntity
private final TestAttemptConfig
private final TestFunction
private long
private boolean
private final int
private final Object2LongMap
<Runnable> private final Collection
<TimedTaskRunner> private final ServerWorld
-
Constructor Summary
ConstructorDescriptionGameTestState
(TestFunction testFunction, BlockRotation rotation, ServerWorld world, TestAttemptConfig testAttemptConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(TestListener listener) private void
complete()
void
copy()
(package private) TimedTaskRunner
void
private BlockPos
long
int
getPos()
int
(package private) long
getTick()
int
getWorld()
init()
private boolean
boolean
boolean
isFailed()
boolean
isFlaky()
boolean
boolean
isPassed()
boolean
boolean
void
void
setBoxMinPos
(BlockPos boxMinPos) (package private) void
private void
start()
startCountdown
(int additionalExpectedStopTime) void
tick
(TestRunContext context) private void
toString()
-
Field Details
-
testFunction
- Mappings:
Namespace Name Mixin selector named testFunction
Lnet/minecraft/test/GameTestState;testFunction:Lnet/minecraft/test/TestFunction;
intermediary field_20559
Lnet/minecraft/class_4517;field_20559:Lnet/minecraft/class_4529;
official a
Lsw;a:Ltq;
-
pos
- Mappings:
Namespace Name Mixin selector named pos
Lnet/minecraft/test/GameTestState;pos:Lnet/minecraft/util/math/BlockPos;
intermediary field_20560
Lnet/minecraft/class_4517;field_20560:Lnet/minecraft/class_2338;
official b
Lsw;b:Ljd;
-
boxMinPos
- Mappings:
Namespace Name Mixin selector named boxMinPos
Lnet/minecraft/test/GameTestState;boxMinPos:Lnet/minecraft/util/math/BlockPos;
intermediary field_48468
Lnet/minecraft/class_4517;field_48468:Lnet/minecraft/class_2338;
official c
Lsw;c:Ljd;
-
world
- Mappings:
Namespace Name Mixin selector named world
Lnet/minecraft/test/GameTestState;world:Lnet/minecraft/server/world/ServerWorld;
intermediary field_20561
Lnet/minecraft/class_4517;field_20561:Lnet/minecraft/class_3218;
official d
Lsw;d:Laqt;
-
listeners
- Mappings:
Namespace Name Mixin selector named listeners
Lnet/minecraft/test/GameTestState;listeners:Ljava/util/Collection;
intermediary field_20562
Lnet/minecraft/class_4517;field_20562:Ljava/util/Collection;
official e
Lsw;e:Ljava/util/Collection;
-
tickLimit
private final int tickLimit- Mappings:
Namespace Name Mixin selector named tickLimit
Lnet/minecraft/test/GameTestState;tickLimit:I
intermediary field_20563
Lnet/minecraft/class_4517;field_20563:I
official f
Lsw;f:I
-
timedTaskRunners
- Mappings:
Namespace Name Mixin selector named timedTaskRunners
Lnet/minecraft/test/GameTestState;timedTaskRunners:Ljava/util/Collection;
intermediary field_21452
Lnet/minecraft/class_4517;field_21452:Ljava/util/Collection;
official g
Lsw;g:Ljava/util/Collection;
-
ticksByRunnables
- Mappings:
Namespace Name Mixin selector named ticksByRunnables
Lnet/minecraft/test/GameTestState;ticksByRunnables:Lit/unimi/dsi/fastutil/objects/Object2LongMap;
intermediary field_21453
Lnet/minecraft/class_4517;field_21453:Lit/unimi/dsi/fastutil/objects/Object2LongMap;
official h
Lsw;h:Lit/unimi/dsi/fastutil/objects/Object2LongMap;
-
startTime
private long startTime- Mappings:
Namespace Name Mixin selector named startTime
Lnet/minecraft/test/GameTestState;startTime:J
intermediary field_21454
Lnet/minecraft/class_4517;field_21454:J
official i
Lsw;i:J
-
initialDelay
private int initialDelay- Mappings:
Namespace Name Mixin selector named initialDelay
Lnet/minecraft/test/GameTestState;initialDelay:I
intermediary field_47172
Lnet/minecraft/class_4517;field_47172:I
official j
Lsw;j:I
-
initialized
private boolean initialized- Mappings:
Namespace Name Mixin selector named initialized
Lnet/minecraft/test/GameTestState;initialized:Z
intermediary field_47173
Lnet/minecraft/class_4517;field_47173:Z
official k
Lsw;k:Z
-
tickedOnce
private boolean tickedOnce- Mappings:
Namespace Name Mixin selector named tickedOnce
Lnet/minecraft/test/GameTestState;tickedOnce:Z
intermediary field_47174
Lnet/minecraft/class_4517;field_47174:Z
official l
Lsw;l:Z
-
tick
private long tick- Mappings:
Namespace Name Mixin selector named tick
Lnet/minecraft/test/GameTestState;tick:J
intermediary field_21455
Lnet/minecraft/class_4517;field_21455:J
official m
Lsw;m:J
-
started
private boolean started- Mappings:
Namespace Name Mixin selector named started
Lnet/minecraft/test/GameTestState;started:Z
intermediary field_20565
Lnet/minecraft/class_4517;field_20565:Z
official n
Lsw;n:Z
-
testAttemptConfig
- Mappings:
Namespace Name Mixin selector named testAttemptConfig
Lnet/minecraft/test/GameTestState;testAttemptConfig:Lnet/minecraft/test/TestAttemptConfig;
intermediary field_48469
Lnet/minecraft/class_4517;field_48469:Lnet/minecraft/class_9118;
official o
Lsw;o:Ltj;
-
stopwatch
- Mappings:
Namespace Name Mixin selector named stopwatch
Lnet/minecraft/test/GameTestState;stopwatch:Lcom/google/common/base/Stopwatch;
intermediary field_21456
Lnet/minecraft/class_4517;field_21456:Lcom/google/common/base/Stopwatch;
official p
Lsw;p:Lcom/google/common/base/Stopwatch;
-
completed
private boolean completed- Mappings:
Namespace Name Mixin selector named completed
Lnet/minecraft/test/GameTestState;completed:Z
intermediary field_20567
Lnet/minecraft/class_4517;field_20567:Z
official q
Lsw;q:Z
-
rotation
- Mappings:
Namespace Name Mixin selector named rotation
Lnet/minecraft/test/GameTestState;rotation:Lnet/minecraft/util/BlockRotation;
intermediary field_25301
Lnet/minecraft/class_4517;field_25301:Lnet/minecraft/class_2470;
official r
Lsw;r:Ldmk;
-
throwable
- Mappings:
Namespace Name Mixin selector named throwable
Lnet/minecraft/test/GameTestState;throwable:Ljava/lang/Throwable;
intermediary field_20569
Lnet/minecraft/class_4517;field_20569:Ljava/lang/Throwable;
official s
Lsw;s:Ljava/lang/Throwable;
-
structureBlockEntity
- Mappings:
Namespace Name Mixin selector named structureBlockEntity
Lnet/minecraft/test/GameTestState;structureBlockEntity:Lnet/minecraft/block/entity/StructureBlockBlockEntity;
intermediary field_27805
Lnet/minecraft/class_4517;field_27805:Lnet/minecraft/class_2633;
official t
Lsw;t:Ldrv;
-
-
Constructor Details
-
GameTestState
public GameTestState(TestFunction testFunction, BlockRotation rotation, ServerWorld world, TestAttemptConfig testAttemptConfig) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/test/GameTestState;<init>(Lnet/minecraft/test/TestFunction;Lnet/minecraft/util/BlockRotation;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/test/TestAttemptConfig;)V
intermediary <init>
Lnet/minecraft/class_4517;<init>(Lnet/minecraft/class_4529;Lnet/minecraft/class_2470;Lnet/minecraft/class_3218;Lnet/minecraft/class_9118;)V
official <init>
Lsw;<init>(Ltq;Ldmk;Laqt;Ltj;)V
-
-
Method Details
-
setPos
- Mappings:
Namespace Name Mixin selector named setPos
Lnet/minecraft/test/GameTestState;setPos(Lnet/minecraft/util/math/BlockPos;)V
intermediary method_23635
Lnet/minecraft/class_4517;method_23635(Lnet/minecraft/class_2338;)V
official a
Lsw;a(Ljd;)V
-
startCountdown
- Mappings:
Namespace Name Mixin selector named startCountdown
Lnet/minecraft/test/GameTestState;startCountdown(I)Lnet/minecraft/test/GameTestState;
intermediary method_23634
Lnet/minecraft/class_4517;method_23634(I)Lnet/minecraft/class_4517;
official a
Lsw;a(I)Lsw;
-
initializeImmediately
- Mappings:
Namespace Name Mixin selector named initializeImmediately
Lnet/minecraft/test/GameTestState;initializeImmediately()Lnet/minecraft/test/GameTestState;
intermediary method_56213
Lnet/minecraft/class_4517;method_56213()Lnet/minecraft/class_4517;
official a
Lsw;a()Lsw;
-
initialize
private boolean initialize()- Mappings:
Namespace Name Mixin selector named initialize
Lnet/minecraft/test/GameTestState;initialize()Z
intermediary method_56211
Lnet/minecraft/class_4517;method_56211()Z
official C
Lsw;C()Z
-
tick
- Mappings:
Namespace Name Mixin selector named tick
Lnet/minecraft/test/GameTestState;tick(Lnet/minecraft/test/TestRunContext;)V
intermediary method_22165
Lnet/minecraft/class_4517;method_22165(Lnet/minecraft/class_4520;)V
official a
Lsw;a(Lsz;)V
-
tickTests
private void tickTests()- Mappings:
Namespace Name Mixin selector named tickTests
Lnet/minecraft/test/GameTestState;tickTests()V
intermediary method_33315
Lnet/minecraft/class_4517;method_33315()V
official D
Lsw;D()V
-
start
private void start()- Mappings:
Namespace Name Mixin selector named start
Lnet/minecraft/test/GameTestState;start()V
intermediary method_23639
Lnet/minecraft/class_4517;method_23639()V
official E
Lsw;E()V
-
runAtTick
- Mappings:
Namespace Name Mixin selector named runAtTick
Lnet/minecraft/test/GameTestState;runAtTick(JLjava/lang/Runnable;)V
intermediary method_36060
Lnet/minecraft/class_4517;method_36060(JLjava/lang/Runnable;)V
official a
Lsw;a(JLjava/lang/Runnable;)V
-
getTemplatePath
- Mappings:
Namespace Name Mixin selector named getTemplatePath
Lnet/minecraft/test/GameTestState;getTemplatePath()Ljava/lang/String;
intermediary method_22169
Lnet/minecraft/class_4517;method_22169()Ljava/lang/String;
official b
Lsw;b()Ljava/lang/String;
-
getPos
- Mappings:
Namespace Name Mixin selector named getPos
Lnet/minecraft/test/GameTestState;getPos()Lnet/minecraft/util/math/BlockPos;
intermediary method_22172
Lnet/minecraft/class_4517;method_22172()Lnet/minecraft/class_2338;
official c
Lsw;c()Ljd;
-
getBoundingBox
- Mappings:
Namespace Name Mixin selector named getBoundingBox
Lnet/minecraft/test/GameTestState;getBoundingBox()Lnet/minecraft/util/math/Box;
intermediary method_36062
Lnet/minecraft/class_4517;method_36062()Lnet/minecraft/class_238;
official d
Lsw;d()Lewr;
-
getStructureBlockBlockEntity
- Mappings:
Namespace Name Mixin selector named getStructureBlockBlockEntity
Lnet/minecraft/test/GameTestState;getStructureBlockBlockEntity()Lnet/minecraft/block/entity/StructureBlockBlockEntity;
intermediary method_36059
Lnet/minecraft/class_4517;method_36059()Lnet/minecraft/class_2633;
official e
Lsw;e()Ldrv;
-
getWorld
- Mappings:
Namespace Name Mixin selector named getWorld
Lnet/minecraft/test/GameTestState;getWorld()Lnet/minecraft/server/world/ServerWorld;
intermediary method_22176
Lnet/minecraft/class_4517;method_22176()Lnet/minecraft/class_3218;
official f
Lsw;f()Laqt;
-
isPassed
public boolean isPassed()- Mappings:
Namespace Name Mixin selector named isPassed
Lnet/minecraft/test/GameTestState;isPassed()Z
intermediary method_22177
Lnet/minecraft/class_4517;method_22177()Z
official g
Lsw;g()Z
-
isFailed
public boolean isFailed()- Mappings:
Namespace Name Mixin selector named isFailed
Lnet/minecraft/test/GameTestState;isFailed()Z
intermediary method_22178
Lnet/minecraft/class_4517;method_22178()Z
official h
Lsw;h()Z
-
isStarted
public boolean isStarted()- Mappings:
Namespace Name Mixin selector named isStarted
Lnet/minecraft/test/GameTestState;isStarted()Z
intermediary method_22179
Lnet/minecraft/class_4517;method_22179()Z
official i
Lsw;i()Z
-
isCompleted
public boolean isCompleted()- Mappings:
Namespace Name Mixin selector named isCompleted
Lnet/minecraft/test/GameTestState;isCompleted()Z
intermediary method_22180
Lnet/minecraft/class_4517;method_22180()Z
official j
Lsw;j()Z
-
getElapsedMilliseconds
public long getElapsedMilliseconds()- Mappings:
Namespace Name Mixin selector named getElapsedMilliseconds
Lnet/minecraft/test/GameTestState;getElapsedMilliseconds()J
intermediary method_36063
Lnet/minecraft/class_4517;method_36063()J
official k
Lsw;k()J
-
complete
private void complete()- Mappings:
Namespace Name Mixin selector named complete
Lnet/minecraft/test/GameTestState;complete()V
intermediary method_23640
Lnet/minecraft/class_4517;method_23640()V
official F
Lsw;F()V
-
completeIfSuccessful
public void completeIfSuccessful()- Mappings:
Namespace Name Mixin selector named completeIfSuccessful
Lnet/minecraft/test/GameTestState;completeIfSuccessful()V
intermediary method_36064
Lnet/minecraft/class_4517;method_36064()V
official l
Lsw;l()V
-
fail
- Mappings:
Namespace Name Mixin selector named fail
Lnet/minecraft/test/GameTestState;fail(Ljava/lang/Throwable;)V
intermediary method_22168
Lnet/minecraft/class_4517;method_22168(Ljava/lang/Throwable;)V
official a
Lsw;a(Ljava/lang/Throwable;)V
-
getThrowable
- Mappings:
Namespace Name Mixin selector named getThrowable
Lnet/minecraft/test/GameTestState;getThrowable()Ljava/lang/Throwable;
intermediary method_22182
Lnet/minecraft/class_4517;method_22182()Ljava/lang/Throwable;
official m
Lsw;m()Ljava/lang/Throwable;
-
toString
-
addListener
- Mappings:
Namespace Name Mixin selector named addListener
Lnet/minecraft/test/GameTestState;addListener(Lnet/minecraft/test/TestListener;)V
intermediary method_22167
Lnet/minecraft/class_4517;method_22167(Lnet/minecraft/class_4518;)V
official a
Lsw;a(Lsx;)V
-
init
- Mappings:
Namespace Name Mixin selector named init
Lnet/minecraft/test/GameTestState;init()Lnet/minecraft/test/GameTestState;
intermediary method_22166
Lnet/minecraft/class_4517;method_22166()Lnet/minecraft/class_4517;
official n
Lsw;n()Lsw;
-
getTick
long getTick()- Mappings:
Namespace Name Mixin selector named getTick
Lnet/minecraft/test/GameTestState;getTick()J
intermediary method_36065
Lnet/minecraft/class_4517;method_36065()J
official o
Lsw;o()J
-
createTimedTaskRunner
TimedTaskRunner createTimedTaskRunner()- Mappings:
Namespace Name Mixin selector named createTimedTaskRunner
Lnet/minecraft/test/GameTestState;createTimedTaskRunner()Lnet/minecraft/test/TimedTaskRunner;
intermediary method_36066
Lnet/minecraft/class_4517;method_36066()Lnet/minecraft/class_4693;
official p
Lsw;p()Lta;
-
isRequired
public boolean isRequired()- Mappings:
Namespace Name Mixin selector named isRequired
Lnet/minecraft/test/GameTestState;isRequired()Z
intermediary method_22183
Lnet/minecraft/class_4517;method_22183()Z
official q
Lsw;q()Z
-
isOptional
public boolean isOptional()- Mappings:
Namespace Name Mixin selector named isOptional
Lnet/minecraft/test/GameTestState;isOptional()Z
intermediary method_22184
Lnet/minecraft/class_4517;method_22184()Z
official r
Lsw;r()Z
-
getTemplateName
- Mappings:
Namespace Name Mixin selector named getTemplateName
Lnet/minecraft/test/GameTestState;getTemplateName()Ljava/lang/String;
intermediary method_23638
Lnet/minecraft/class_4517;method_23638()Ljava/lang/String;
official s
Lsw;s()Ljava/lang/String;
-
getRotation
- Mappings:
Namespace Name Mixin selector named getRotation
Lnet/minecraft/test/GameTestState;getRotation()Lnet/minecraft/util/BlockRotation;
intermediary method_29402
Lnet/minecraft/class_4517;method_29402()Lnet/minecraft/class_2470;
official t
Lsw;t()Ldmk;
-
getTestFunction
- Mappings:
Namespace Name Mixin selector named getTestFunction
Lnet/minecraft/test/GameTestState;getTestFunction()Lnet/minecraft/test/TestFunction;
intermediary method_29403
Lnet/minecraft/class_4517;method_29403()Lnet/minecraft/class_4529;
official u
Lsw;u()Ltq;
-
getTickLimit
public int getTickLimit()- Mappings:
Namespace Name Mixin selector named getTickLimit
Lnet/minecraft/test/GameTestState;getTickLimit()I
intermediary method_36067
Lnet/minecraft/class_4517;method_36067()I
official v
Lsw;v()I
-
isFlaky
public boolean isFlaky()- Mappings:
Namespace Name Mixin selector named isFlaky
Lnet/minecraft/test/GameTestState;isFlaky()Z
intermediary method_32241
Lnet/minecraft/class_4517;method_32241()Z
official w
Lsw;w()Z
-
getMaxAttempts
public int getMaxAttempts()- Mappings:
Namespace Name Mixin selector named getMaxAttempts
Lnet/minecraft/test/GameTestState;getMaxAttempts()I
intermediary method_32242
Lnet/minecraft/class_4517;method_32242()I
official x
Lsw;x()I
-
getRequiredSuccesses
public int getRequiredSuccesses()- Mappings:
Namespace Name Mixin selector named getRequiredSuccesses
Lnet/minecraft/test/GameTestState;getRequiredSuccesses()I
intermediary method_32243
Lnet/minecraft/class_4517;method_32243()I
official y
Lsw;y()I
-
getTestAttemptConfig
- Mappings:
Namespace Name Mixin selector named getTestAttemptConfig
Lnet/minecraft/test/GameTestState;getTestAttemptConfig()Lnet/minecraft/test/TestAttemptConfig;
intermediary method_56215
Lnet/minecraft/class_4517;method_56215()Lnet/minecraft/class_9118;
official z
Lsw;z()Ltj;
-
streamListeners
- Mappings:
Namespace Name Mixin selector named streamListeners
Lnet/minecraft/test/GameTestState;streamListeners()Ljava/util/stream/Stream;
intermediary method_56209
Lnet/minecraft/class_4517;method_56209()Ljava/util/stream/Stream;
official A
Lsw;A()Ljava/util/stream/Stream;
-
copy
- Mappings:
Namespace Name Mixin selector named copy
Lnet/minecraft/test/GameTestState;copy()Lnet/minecraft/test/GameTestState;
intermediary method_56210
Lnet/minecraft/class_4517;method_56210()Lnet/minecraft/class_4517;
official B
Lsw;B()Lsw;
-
getBoxMinPos
- Mappings:
Namespace Name Mixin selector named getBoxMinPos
Lnet/minecraft/test/GameTestState;getBoxMinPos()Lnet/minecraft/util/math/BlockPos;
intermediary method_56212
Lnet/minecraft/class_4517;method_56212()Lnet/minecraft/class_2338;
official G
Lsw;G()Ljd;
-
setBoxMinPos
- Mappings:
Namespace Name Mixin selector named setBoxMinPos
Lnet/minecraft/test/GameTestState;setBoxMinPos(Lnet/minecraft/util/math/BlockPos;)V
intermediary method_56214
Lnet/minecraft/class_4517;method_56214(Lnet/minecraft/class_2338;)V
official b
Lsw;b(Ljd;)V
-