Package net.minecraft.test
Class GameTestState
java.lang.Object
net.minecraft.test.GameTestState
- Mappings:
Namespace Name official pw
intermediary net/minecraft/class_4517
named net/minecraft/test/GameTestState
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private long
private boolean
private final Collection<TestListener>
private @Nullable BlockPos
private final BlockRotation
private boolean
private final Stopwatch
private @Nullable StructureBlockBlockEntity
private final TestFunction
private @Nullable Throwable
private long
private final Object2LongMap<Runnable>
private final int
private final Collection<TimedTaskRunner>
private final ServerWorld
-
Constructor Summary
ConstructorsConstructorDescriptionGameTestState
(TestFunction testFunction, BlockRotation rotation, ServerWorld world) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(TestListener listener) void
private void
complete()
void
(package private) TimedTaskRunner
void
@Nullable Box
long
int
getPos()
int
@Nullable Vec3i
getSize()
private @Nullable StructureBlockBlockEntity
@Nullable Throwable
(package private) long
getTick()
int
getWorld()
void
boolean
boolean
isFailed()
boolean
isFlaky()
boolean
boolean
isPassed()
boolean
boolean
boolean
void
method_54146
(boolean bool) void
(package private) void
private void
start()
(package private) void
void
tick()
private void
toString()
-
Field Details
-
testFunction
- Mappings:
Namespace Name Mixin selector official a
Lpw;a:Lqn;
intermediary field_20559
Lnet/minecraft/class_4517;field_20559:Lnet/minecraft/class_4529;
named testFunction
Lnet/minecraft/test/GameTestState;testFunction:Lnet/minecraft/test/TestFunction;
-
pos
- Mappings:
Namespace Name Mixin selector official b
Lpw;b:Lgw;
intermediary field_20560
Lnet/minecraft/class_4517;field_20560:Lnet/minecraft/class_2338;
named pos
Lnet/minecraft/test/GameTestState;pos:Lnet/minecraft/util/math/BlockPos;
-
world
- Mappings:
Namespace Name Mixin selector official c
Lpw;c:Lakt;
intermediary field_20561
Lnet/minecraft/class_4517;field_20561:Lnet/minecraft/class_3218;
named world
Lnet/minecraft/test/GameTestState;world:Lnet/minecraft/server/world/ServerWorld;
-
listeners
- Mappings:
Namespace Name Mixin selector official d
Lpw;d:Ljava/util/Collection;
intermediary field_20562
Lnet/minecraft/class_4517;field_20562:Ljava/util/Collection;
named listeners
Lnet/minecraft/test/GameTestState;listeners:Ljava/util/Collection;
-
ticksLeft
private final int ticksLeft- Mappings:
Namespace Name Mixin selector official e
Lpw;e:I
intermediary field_20563
Lnet/minecraft/class_4517;field_20563:I
named ticksLeft
Lnet/minecraft/test/GameTestState;ticksLeft:I
-
timedTaskRunners
- Mappings:
Namespace Name Mixin selector official f
Lpw;f:Ljava/util/Collection;
intermediary field_21452
Lnet/minecraft/class_4517;field_21452:Ljava/util/Collection;
named timedTaskRunners
Lnet/minecraft/test/GameTestState;timedTaskRunners:Ljava/util/Collection;
-
ticksByRunnables
- Mappings:
Namespace Name Mixin selector official g
Lpw;g:Lit/unimi/dsi/fastutil/objects/Object2LongMap;
intermediary field_21453
Lnet/minecraft/class_4517;field_21453:Lit/unimi/dsi/fastutil/objects/Object2LongMap;
named ticksByRunnables
Lnet/minecraft/test/GameTestState;ticksByRunnables:Lit/unimi/dsi/fastutil/objects/Object2LongMap;
-
expectedStopTime
private long expectedStopTime- Mappings:
Namespace Name Mixin selector official h
Lpw;h:J
intermediary field_21454
Lnet/minecraft/class_4517;field_21454:J
named expectedStopTime
Lnet/minecraft/test/GameTestState;expectedStopTime:J
-
tick
private long tick- Mappings:
Namespace Name Mixin selector official i
Lpw;i:J
intermediary field_21455
Lnet/minecraft/class_4517;field_21455:J
named tick
Lnet/minecraft/test/GameTestState;tick:J
-
started
private boolean started- Mappings:
Namespace Name Mixin selector official j
Lpw;j:Z
intermediary field_20565
Lnet/minecraft/class_4517;field_20565:Z
named started
Lnet/minecraft/test/GameTestState;started:Z
-
field_46593
private boolean field_46593- Mappings:
Namespace Name Mixin selector official k
Lpw;k:Z
intermediary field_46593
Lnet/minecraft/class_4517;field_46593:Z
named field_46593
Lnet/minecraft/test/GameTestState;field_46593:Z
-
stopwatch
- Mappings:
Namespace Name Mixin selector official l
Lpw;l:Lcom/google/common/base/Stopwatch;
intermediary field_21456
Lnet/minecraft/class_4517;field_21456:Lcom/google/common/base/Stopwatch;
named stopwatch
Lnet/minecraft/test/GameTestState;stopwatch:Lcom/google/common/base/Stopwatch;
-
completed
private boolean completed- Mappings:
Namespace Name Mixin selector official m
Lpw;m:Z
intermediary field_20567
Lnet/minecraft/class_4517;field_20567:Z
named completed
Lnet/minecraft/test/GameTestState;completed:Z
-
rotation
- Mappings:
Namespace Name Mixin selector official n
Lpw;n:Lczn;
intermediary field_25301
Lnet/minecraft/class_4517;field_25301:Lnet/minecraft/class_2470;
named rotation
Lnet/minecraft/test/GameTestState;rotation:Lnet/minecraft/util/BlockRotation;
-
throwable
- Mappings:
Namespace Name Mixin selector official o
Lpw;o:Ljava/lang/Throwable;
intermediary field_20569
Lnet/minecraft/class_4517;field_20569:Ljava/lang/Throwable;
named throwable
Lnet/minecraft/test/GameTestState;throwable:Ljava/lang/Throwable;
-
structureBlockEntity
- Mappings:
Namespace Name Mixin selector official p
Lpw;p:Ldem;
intermediary field_27805
Lnet/minecraft/class_4517;field_27805:Lnet/minecraft/class_2633;
named structureBlockEntity
Lnet/minecraft/test/GameTestState;structureBlockEntity:Lnet/minecraft/block/entity/StructureBlockBlockEntity;
-
-
Constructor Details
-
GameTestState
- Mappings:
Namespace Name Mixin selector official <init>
Lpw;<init>(Lqn;Lczn;Lakt;)V
intermediary <init>
Lnet/minecraft/class_4517;<init>(Lnet/minecraft/class_4529;Lnet/minecraft/class_2470;Lnet/minecraft/class_3218;)V
named <init>
Lnet/minecraft/test/GameTestState;<init>(Lnet/minecraft/test/TestFunction;Lnet/minecraft/util/BlockRotation;Lnet/minecraft/server/world/ServerWorld;)V
-
-
Method Details
-
setPos
- Mappings:
Namespace Name Mixin selector official a
Lpw;a(Lgw;)V
intermediary method_23635
Lnet/minecraft/class_4517;method_23635(Lnet/minecraft/class_2338;)V
named setPos
Lnet/minecraft/test/GameTestState;setPos(Lnet/minecraft/util/math/BlockPos;)V
-
startCountdown
void startCountdown()- Mappings:
Namespace Name Mixin selector official a
Lpw;a()V
intermediary method_23634
Lnet/minecraft/class_4517;method_23634()V
named startCountdown
Lnet/minecraft/test/GameTestState;startCountdown()V
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector official b
Lpw;b()V
intermediary method_22165
Lnet/minecraft/class_4517;method_22165()V
named tick
Lnet/minecraft/test/GameTestState;tick()V
-
tickTests
private void tickTests()- Mappings:
Namespace Name Mixin selector official B
Lpw;B()V
intermediary method_33315
Lnet/minecraft/class_4517;method_33315()V
named tickTests
Lnet/minecraft/test/GameTestState;tickTests()V
-
start
private void start()- Mappings:
Namespace Name Mixin selector official C
Lpw;C()V
intermediary method_23639
Lnet/minecraft/class_4517;method_23639()V
named start
Lnet/minecraft/test/GameTestState;start()V
-
runAtTick
- Mappings:
Namespace Name Mixin selector official a
Lpw;a(JLjava/lang/Runnable;)V
intermediary method_36060
Lnet/minecraft/class_4517;method_36060(JLjava/lang/Runnable;)V
named runAtTick
Lnet/minecraft/test/GameTestState;runAtTick(JLjava/lang/Runnable;)V
-
getTemplatePath
- Mappings:
Namespace Name Mixin selector official c
Lpw;c()Ljava/lang/String;
intermediary method_22169
Lnet/minecraft/class_4517;method_22169()Ljava/lang/String;
named getTemplatePath
Lnet/minecraft/test/GameTestState;getTemplatePath()Ljava/lang/String;
-
getPos
- Mappings:
Namespace Name Mixin selector official d
Lpw;d()Lgw;
intermediary method_22172
Lnet/minecraft/class_4517;method_22172()Lnet/minecraft/class_2338;
named getPos
Lnet/minecraft/test/GameTestState;getPos()Lnet/minecraft/util/math/BlockPos;
-
getSize
- Mappings:
Namespace Name Mixin selector official e
Lpw;e()Lhy;
intermediary method_36061
Lnet/minecraft/class_4517;method_36061()Lnet/minecraft/class_2382;
named getSize
Lnet/minecraft/test/GameTestState;getSize()Lnet/minecraft/util/math/Vec3i;
-
getBoundingBox
- Mappings:
Namespace Name Mixin selector official f
Lpw;f()Lehc;
intermediary method_36062
Lnet/minecraft/class_4517;method_36062()Lnet/minecraft/class_238;
named getBoundingBox
Lnet/minecraft/test/GameTestState;getBoundingBox()Lnet/minecraft/util/math/Box;
-
getStructureBlockBlockEntity
- Mappings:
Namespace Name Mixin selector official D
Lpw;D()Ldem;
intermediary method_36059
Lnet/minecraft/class_4517;method_36059()Lnet/minecraft/class_2633;
named getStructureBlockBlockEntity
Lnet/minecraft/test/GameTestState;getStructureBlockBlockEntity()Lnet/minecraft/block/entity/StructureBlockBlockEntity;
-
getWorld
- Mappings:
Namespace Name Mixin selector official g
Lpw;g()Lakt;
intermediary method_22176
Lnet/minecraft/class_4517;method_22176()Lnet/minecraft/class_3218;
named getWorld
Lnet/minecraft/test/GameTestState;getWorld()Lnet/minecraft/server/world/ServerWorld;
-
isPassed
public boolean isPassed()- Mappings:
Namespace Name Mixin selector official h
Lpw;h()Z
intermediary method_22177
Lnet/minecraft/class_4517;method_22177()Z
named isPassed
Lnet/minecraft/test/GameTestState;isPassed()Z
-
isFailed
public boolean isFailed()- Mappings:
Namespace Name Mixin selector official i
Lpw;i()Z
intermediary method_22178
Lnet/minecraft/class_4517;method_22178()Z
named isFailed
Lnet/minecraft/test/GameTestState;isFailed()Z
-
isStarted
public boolean isStarted()- Mappings:
Namespace Name Mixin selector official j
Lpw;j()Z
intermediary method_22179
Lnet/minecraft/class_4517;method_22179()Z
named isStarted
Lnet/minecraft/test/GameTestState;isStarted()Z
-
isCompleted
public boolean isCompleted()- Mappings:
Namespace Name Mixin selector official k
Lpw;k()Z
intermediary method_22180
Lnet/minecraft/class_4517;method_22180()Z
named isCompleted
Lnet/minecraft/test/GameTestState;isCompleted()Z
-
getElapsedMilliseconds
public long getElapsedMilliseconds()- Mappings:
Namespace Name Mixin selector official l
Lpw;l()J
intermediary method_36063
Lnet/minecraft/class_4517;method_36063()J
named getElapsedMilliseconds
Lnet/minecraft/test/GameTestState;getElapsedMilliseconds()J
-
complete
private void complete()- Mappings:
Namespace Name Mixin selector official E
Lpw;E()V
intermediary method_23640
Lnet/minecraft/class_4517;method_23640()V
named complete
Lnet/minecraft/test/GameTestState;complete()V
-
completeIfSuccessful
public void completeIfSuccessful()- Mappings:
Namespace Name Mixin selector official m
Lpw;m()V
intermediary method_36064
Lnet/minecraft/class_4517;method_36064()V
named completeIfSuccessful
Lnet/minecraft/test/GameTestState;completeIfSuccessful()V
-
fail
- Mappings:
Namespace Name Mixin selector official a
Lpw;a(Ljava/lang/Throwable;)V
intermediary method_22168
Lnet/minecraft/class_4517;method_22168(Ljava/lang/Throwable;)V
named fail
Lnet/minecraft/test/GameTestState;fail(Ljava/lang/Throwable;)V
-
getThrowable
- Mappings:
Namespace Name Mixin selector official n
Lpw;n()Ljava/lang/Throwable;
intermediary method_22182
Lnet/minecraft/class_4517;method_22182()Ljava/lang/Throwable;
named getThrowable
Lnet/minecraft/test/GameTestState;getThrowable()Ljava/lang/Throwable;
-
toString
-
addListener
- Mappings:
Namespace Name Mixin selector official a
Lpw;a(Lpx;)V
intermediary method_22167
Lnet/minecraft/class_4517;method_22167(Lnet/minecraft/class_4518;)V
named addListener
Lnet/minecraft/test/GameTestState;addListener(Lnet/minecraft/test/TestListener;)V
-
init
- Mappings:
Namespace Name Mixin selector official a
Lpw;a(Lgw;I)V
intermediary method_22166
Lnet/minecraft/class_4517;method_22166(Lnet/minecraft/class_2338;I)V
named init
Lnet/minecraft/test/GameTestState;init(Lnet/minecraft/util/math/BlockPos;I)V
-
clearArea
public void clearArea()- Mappings:
Namespace Name Mixin selector official o
Lpw;o()V
intermediary method_32240
Lnet/minecraft/class_4517;method_32240()V
named clearArea
Lnet/minecraft/test/GameTestState;clearArea()V
-
getTick
long getTick()- Mappings:
Namespace Name Mixin selector official p
Lpw;p()J
intermediary method_36065
Lnet/minecraft/class_4517;method_36065()J
named getTick
Lnet/minecraft/test/GameTestState;getTick()J
-
createTimedTaskRunner
TimedTaskRunner createTimedTaskRunner()- Mappings:
Namespace Name Mixin selector official q
Lpw;q()Lqa;
intermediary method_36066
Lnet/minecraft/class_4517;method_36066()Lnet/minecraft/class_4693;
named createTimedTaskRunner
Lnet/minecraft/test/GameTestState;createTimedTaskRunner()Lnet/minecraft/test/TimedTaskRunner;
-
isRequired
public boolean isRequired()- Mappings:
Namespace Name Mixin selector official r
Lpw;r()Z
intermediary method_22183
Lnet/minecraft/class_4517;method_22183()Z
named isRequired
Lnet/minecraft/test/GameTestState;isRequired()Z
-
isOptional
public boolean isOptional()- Mappings:
Namespace Name Mixin selector official s
Lpw;s()Z
intermediary method_22184
Lnet/minecraft/class_4517;method_22184()Z
named isOptional
Lnet/minecraft/test/GameTestState;isOptional()Z
-
getTemplateName
- Mappings:
Namespace Name Mixin selector official t
Lpw;t()Ljava/lang/String;
intermediary method_23638
Lnet/minecraft/class_4517;method_23638()Ljava/lang/String;
named getTemplateName
Lnet/minecraft/test/GameTestState;getTemplateName()Ljava/lang/String;
-
getRotation
- Mappings:
Namespace Name Mixin selector official u
Lpw;u()Lczn;
intermediary method_29402
Lnet/minecraft/class_4517;method_29402()Lnet/minecraft/class_2470;
named getRotation
Lnet/minecraft/test/GameTestState;getRotation()Lnet/minecraft/util/BlockRotation;
-
getTestFunction
- Mappings:
Namespace Name Mixin selector official v
Lpw;v()Lqn;
intermediary method_29403
Lnet/minecraft/class_4517;method_29403()Lnet/minecraft/class_4529;
named getTestFunction
Lnet/minecraft/test/GameTestState;getTestFunction()Lnet/minecraft/test/TestFunction;
-
getTicksLeft
public int getTicksLeft()- Mappings:
Namespace Name Mixin selector official w
Lpw;w()I
intermediary method_36067
Lnet/minecraft/class_4517;method_36067()I
named getTicksLeft
Lnet/minecraft/test/GameTestState;getTicksLeft()I
-
isFlaky
public boolean isFlaky()- Mappings:
Namespace Name Mixin selector official x
Lpw;x()Z
intermediary method_32241
Lnet/minecraft/class_4517;method_32241()Z
named isFlaky
Lnet/minecraft/test/GameTestState;isFlaky()Z
-
getMaxAttempts
public int getMaxAttempts()- Mappings:
Namespace Name Mixin selector official y
Lpw;y()I
intermediary method_32242
Lnet/minecraft/class_4517;method_32242()I
named getMaxAttempts
Lnet/minecraft/test/GameTestState;getMaxAttempts()I
-
getRequiredSuccesses
public int getRequiredSuccesses()- Mappings:
Namespace Name Mixin selector official z
Lpw;z()I
intermediary method_32243
Lnet/minecraft/class_4517;method_32243()I
named getRequiredSuccesses
Lnet/minecraft/test/GameTestState;getRequiredSuccesses()I
-
method_54146
public void method_54146(boolean bool) - Mappings:
Namespace Name Mixin selector official a
Lpw;a(Z)V
intermediary method_54146
Lnet/minecraft/class_4517;method_54146(Z)V
named method_54146
Lnet/minecraft/test/GameTestState;method_54146(Z)V
-
method_54145
public boolean method_54145()- Mappings:
Namespace Name Mixin selector official A
Lpw;A()Z
intermediary method_54145
Lnet/minecraft/class_4517;method_54145()Z
named method_54145
Lnet/minecraft/test/GameTestState;method_54145()Z
-