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 ts
-
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
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
Lts;a:Lum;
-
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
Lts;b:Ljh;
-
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
Lts;c:Ljh;
-
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
Lts;d:Lash;
-
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
Lts;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
Lts;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
Lts;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
Lts;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
Lts;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
Lts;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
Lts;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
Lts;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
Lts;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
Lts;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
Lts;o:Luf;
-
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
Lts;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
Lts;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
Lts;r:Ldrb;
-
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
Lts;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
Lts;t:Ldwo;
-
-
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>
Lts;<init>(Lum;Ldrb;Lash;Luf;)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
Lts;a(Ljh;)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
Lts;a(I)Lts;
-
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
Lts;a()Lts;
-
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 E
Lts;E()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
Lts;a(Ltv;)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 F
Lts;F()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 G
Lts;G()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
Lts;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
Lts;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
Lts;c()Ljh;
-
getOrigin
- Mappings:
Namespace Name Mixin selector named getOrigin
Lnet/minecraft/test/GameTestState;getOrigin()Lnet/minecraft/util/math/BlockPos;
intermediary method_64385
Lnet/minecraft/class_4517;method_64385()Lnet/minecraft/class_2338;
official d
Lts;d()Ljh;
-
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 e
Lts;e()Lfbs;
-
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 f
Lts;f()Ldwo;
-
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 g
Lts;g()Lash;
-
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 h
Lts;h()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 i
Lts;i()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 j
Lts;j()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 k
Lts;k()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 l
Lts;l()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 H
Lts;H()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 m
Lts;m()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
Lts;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 n
Lts;n()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
Lts;a(Ltt;)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 o
Lts;o()Lts;
-
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 p
Lts;p()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 q
Lts;q()Ltw;
-
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 r
Lts;r()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 s
Lts;s()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 t
Lts;t()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 u
Lts;u()Ldrb;
-
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 v
Lts;v()Lum;
-
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 w
Lts;w()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 x
Lts;x()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 y
Lts;y()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 z
Lts;z()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 A
Lts;A()Luf;
-
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 B
Lts;B()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 C
Lts;C()Lts;
-
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 D
Lts;D()Ljh;
-
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
Lts;b(Ljh;)V
-