Package net.minecraft.test
Class GameTestState
java.lang.Object
net.minecraft.test.GameTestState
- Mappings:
Namespace Name intermediary net/minecraft/class_4517official prnamed net/minecraft/test/GameTestState
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate longprivate final Collection<TestListener>private final BlockRotationprivate booleanprivate final Stopwatchprivate @Nullable StructureBlockBlockEntityprivate final TestFunctionprivate longprivate final Object2LongMap<Runnable>private final intprivate final Collection<TimedTaskRunner>private final ServerWorld -
Constructor Summary
ConstructorsConstructorDescriptionGameTestState(TestFunction testFunction, BlockRotation rotation, ServerWorld world) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(TestListener listener) voidprivate voidcomplete()void(package private) TimedTaskRunnervoidlongintgetPos()intgetSize()private @Nullable StructureBlockBlockEntity(package private) longgetTick()intgetWorld()voidbooleanbooleanisFailed()booleanisFlaky()booleanbooleanisPassed()booleanbooleanvoid(package private) voidprivate voidstart()(package private) voidvoidtick()private voidtoString()
-
Field Details
-
testFunction
- Mappings:
Namespace Name Mixin selector intermediary field_20559Lnet/minecraft/class_4517;field_20559:Lnet/minecraft/class_4529;official aLpr;a:Lqi;named testFunctionLnet/minecraft/test/GameTestState;testFunction:Lnet/minecraft/test/TestFunction;
-
pos
- Mappings:
Namespace Name Mixin selector intermediary field_20560Lnet/minecraft/class_4517;field_20560:Lnet/minecraft/class_2338;official bLpr;b:Lgu;named posLnet/minecraft/test/GameTestState;pos:Lnet/minecraft/util/math/BlockPos;
-
world
- Mappings:
Namespace Name Mixin selector intermediary field_20561Lnet/minecraft/class_4517;field_20561:Lnet/minecraft/class_3218;official cLpr;c:Laif;named worldLnet/minecraft/test/GameTestState;world:Lnet/minecraft/server/world/ServerWorld;
-
listeners
- Mappings:
Namespace Name Mixin selector intermediary field_20562Lnet/minecraft/class_4517;field_20562:Ljava/util/Collection;official dLpr;d:Ljava/util/Collection;named listenersLnet/minecraft/test/GameTestState;listeners:Ljava/util/Collection;
-
ticksLeft
private final int ticksLeft- Mappings:
Namespace Name Mixin selector intermediary field_20563Lnet/minecraft/class_4517;field_20563:Iofficial eLpr;e:Inamed ticksLeftLnet/minecraft/test/GameTestState;ticksLeft:I
-
timedTaskRunners
- Mappings:
Namespace Name Mixin selector intermediary field_21452Lnet/minecraft/class_4517;field_21452:Ljava/util/Collection;official fLpr;f:Ljava/util/Collection;named timedTaskRunnersLnet/minecraft/test/GameTestState;timedTaskRunners:Ljava/util/Collection;
-
ticksByRunnables
- Mappings:
Namespace Name Mixin selector intermediary field_21453Lnet/minecraft/class_4517;field_21453:Lit/unimi/dsi/fastutil/objects/Object2LongMap;official gLpr;g:Lit/unimi/dsi/fastutil/objects/Object2LongMap;named ticksByRunnablesLnet/minecraft/test/GameTestState;ticksByRunnables:Lit/unimi/dsi/fastutil/objects/Object2LongMap;
-
expectedStopTime
private long expectedStopTime- Mappings:
Namespace Name Mixin selector intermediary field_21454Lnet/minecraft/class_4517;field_21454:Jofficial hLpr;h:Jnamed expectedStopTimeLnet/minecraft/test/GameTestState;expectedStopTime:J
-
tick
private long tick- Mappings:
Namespace Name Mixin selector intermediary field_21455Lnet/minecraft/class_4517;field_21455:Jofficial iLpr;i:Jnamed tickLnet/minecraft/test/GameTestState;tick:J
-
started
private boolean started- Mappings:
Namespace Name Mixin selector intermediary field_20565Lnet/minecraft/class_4517;field_20565:Zofficial jLpr;j:Znamed startedLnet/minecraft/test/GameTestState;started:Z
-
stopwatch
- Mappings:
Namespace Name Mixin selector intermediary field_21456Lnet/minecraft/class_4517;field_21456:Lcom/google/common/base/Stopwatch;official kLpr;k: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 intermediary field_20567Lnet/minecraft/class_4517;field_20567:Zofficial lLpr;l:Znamed completedLnet/minecraft/test/GameTestState;completed:Z
-
rotation
- Mappings:
Namespace Name Mixin selector intermediary field_25301Lnet/minecraft/class_4517;field_25301:Lnet/minecraft/class_2470;official mLpr;m:Lcvw;named rotationLnet/minecraft/test/GameTestState;rotation:Lnet/minecraft/util/BlockRotation;
-
throwable
- Mappings:
Namespace Name Mixin selector intermediary field_20569Lnet/minecraft/class_4517;field_20569:Ljava/lang/Throwable;official nLpr;n:Ljava/lang/Throwable;named throwableLnet/minecraft/test/GameTestState;throwable:Ljava/lang/Throwable;
-
structureBlockEntity
- Mappings:
Namespace Name Mixin selector intermediary field_27805Lnet/minecraft/class_4517;field_27805:Lnet/minecraft/class_2633;official oLpr;o:Ldax;named structureBlockEntityLnet/minecraft/test/GameTestState;structureBlockEntity:Lnet/minecraft/block/entity/StructureBlockBlockEntity;
-
-
Constructor Details
-
GameTestState
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_4517;<init>(Lnet/minecraft/class_4529;Lnet/minecraft/class_2470;Lnet/minecraft/class_3218;)Vofficial <init>Lpr;<init>(Lqi;Lcvw;Laif;)Vnamed <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 intermediary method_23635Lnet/minecraft/class_4517;method_23635(Lnet/minecraft/class_2338;)Vofficial aLpr;a(Lgu;)Vnamed setPosLnet/minecraft/test/GameTestState;setPos(Lnet/minecraft/util/math/BlockPos;)V
-
startCountdown
void startCountdown()- Mappings:
Namespace Name Mixin selector intermediary method_23634Lnet/minecraft/class_4517;method_23634()Vofficial aLpr;a()Vnamed startCountdownLnet/minecraft/test/GameTestState;startCountdown()V
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector intermediary method_22165Lnet/minecraft/class_4517;method_22165()Vofficial bLpr;b()Vnamed tickLnet/minecraft/test/GameTestState;tick()V
-
tickTests
private void tickTests()- Mappings:
Namespace Name Mixin selector intermediary method_33315Lnet/minecraft/class_4517;method_33315()Vofficial ALpr;A()Vnamed tickTestsLnet/minecraft/test/GameTestState;tickTests()V
-
start
private void start()- Mappings:
Namespace Name Mixin selector intermediary method_23639Lnet/minecraft/class_4517;method_23639()Vofficial BLpr;B()Vnamed startLnet/minecraft/test/GameTestState;start()V
-
runAtTick
- Mappings:
Namespace Name Mixin selector intermediary method_36060Lnet/minecraft/class_4517;method_36060(JLjava/lang/Runnable;)Vofficial aLpr;a(JLjava/lang/Runnable;)Vnamed runAtTickLnet/minecraft/test/GameTestState;runAtTick(JLjava/lang/Runnable;)V
-
getTemplatePath
- Mappings:
Namespace Name Mixin selector intermediary method_22169Lnet/minecraft/class_4517;method_22169()Ljava/lang/String;official cLpr;c()Ljava/lang/String;named getTemplatePathLnet/minecraft/test/GameTestState;getTemplatePath()Ljava/lang/String;
-
getPos
- Mappings:
Namespace Name Mixin selector intermediary method_22172Lnet/minecraft/class_4517;method_22172()Lnet/minecraft/class_2338;official dLpr;d()Lgu;named getPosLnet/minecraft/test/GameTestState;getPos()Lnet/minecraft/util/math/BlockPos;
-
getSize
- Mappings:
Namespace Name Mixin selector intermediary method_36061Lnet/minecraft/class_4517;method_36061()Lnet/minecraft/class_2382;official eLpr;e()Lhz;named getSizeLnet/minecraft/test/GameTestState;getSize()Lnet/minecraft/util/math/Vec3i;
-
getBoundingBox
- Mappings:
Namespace Name Mixin selector intermediary method_36062Lnet/minecraft/class_4517;method_36062()Lnet/minecraft/class_238;official fLpr;f()Ledv;named getBoundingBoxLnet/minecraft/test/GameTestState;getBoundingBox()Lnet/minecraft/util/math/Box;
-
getStructureBlockBlockEntity
- Mappings:
Namespace Name Mixin selector intermediary method_36059Lnet/minecraft/class_4517;method_36059()Lnet/minecraft/class_2633;official CLpr;C()Ldax;named getStructureBlockBlockEntityLnet/minecraft/test/GameTestState;getStructureBlockBlockEntity()Lnet/minecraft/block/entity/StructureBlockBlockEntity;
-
getWorld
- Mappings:
Namespace Name Mixin selector intermediary method_22176Lnet/minecraft/class_4517;method_22176()Lnet/minecraft/class_3218;official gLpr;g()Laif;named getWorldLnet/minecraft/test/GameTestState;getWorld()Lnet/minecraft/server/world/ServerWorld;
-
isPassed
public boolean isPassed()- Mappings:
Namespace Name Mixin selector intermediary method_22177Lnet/minecraft/class_4517;method_22177()Zofficial hLpr;h()Znamed isPassedLnet/minecraft/test/GameTestState;isPassed()Z
-
isFailed
public boolean isFailed()- Mappings:
Namespace Name Mixin selector intermediary method_22178Lnet/minecraft/class_4517;method_22178()Zofficial iLpr;i()Znamed isFailedLnet/minecraft/test/GameTestState;isFailed()Z
-
isStarted
public boolean isStarted()- Mappings:
Namespace Name Mixin selector intermediary method_22179Lnet/minecraft/class_4517;method_22179()Zofficial jLpr;j()Znamed isStartedLnet/minecraft/test/GameTestState;isStarted()Z
-
isCompleted
public boolean isCompleted()- Mappings:
Namespace Name Mixin selector intermediary method_22180Lnet/minecraft/class_4517;method_22180()Zofficial kLpr;k()Znamed isCompletedLnet/minecraft/test/GameTestState;isCompleted()Z
-
getElapsedMilliseconds
public long getElapsedMilliseconds()- Mappings:
Namespace Name Mixin selector intermediary method_36063Lnet/minecraft/class_4517;method_36063()Jofficial lLpr;l()Jnamed getElapsedMillisecondsLnet/minecraft/test/GameTestState;getElapsedMilliseconds()J
-
complete
private void complete()- Mappings:
Namespace Name Mixin selector intermediary method_23640Lnet/minecraft/class_4517;method_23640()Vofficial DLpr;D()Vnamed completeLnet/minecraft/test/GameTestState;complete()V
-
completeIfSuccessful
public void completeIfSuccessful()- Mappings:
Namespace Name Mixin selector intermediary method_36064Lnet/minecraft/class_4517;method_36064()Vofficial mLpr;m()Vnamed completeIfSuccessfulLnet/minecraft/test/GameTestState;completeIfSuccessful()V
-
fail
- Mappings:
Namespace Name Mixin selector intermediary method_22168Lnet/minecraft/class_4517;method_22168(Ljava/lang/Throwable;)Vofficial aLpr;a(Ljava/lang/Throwable;)Vnamed failLnet/minecraft/test/GameTestState;fail(Ljava/lang/Throwable;)V
-
getThrowable
- Mappings:
Namespace Name Mixin selector intermediary method_22182Lnet/minecraft/class_4517;method_22182()Ljava/lang/Throwable;official nLpr;n()Ljava/lang/Throwable;named getThrowableLnet/minecraft/test/GameTestState;getThrowable()Ljava/lang/Throwable;
-
toString
-
addListener
- Mappings:
Namespace Name Mixin selector intermediary method_22167Lnet/minecraft/class_4517;method_22167(Lnet/minecraft/class_4518;)Vofficial aLpr;a(Lps;)Vnamed addListenerLnet/minecraft/test/GameTestState;addListener(Lnet/minecraft/test/TestListener;)V
-
init
- Mappings:
Namespace Name Mixin selector intermediary method_22166Lnet/minecraft/class_4517;method_22166(Lnet/minecraft/class_2338;I)Vofficial aLpr;a(Lgu;I)Vnamed initLnet/minecraft/test/GameTestState;init(Lnet/minecraft/util/math/BlockPos;I)V
-
clearArea
public void clearArea()- Mappings:
Namespace Name Mixin selector intermediary method_32240Lnet/minecraft/class_4517;method_32240()Vofficial oLpr;o()Vnamed clearAreaLnet/minecraft/test/GameTestState;clearArea()V
-
getTick
long getTick()- Mappings:
Namespace Name Mixin selector intermediary method_36065Lnet/minecraft/class_4517;method_36065()Jofficial pLpr;p()Jnamed getTickLnet/minecraft/test/GameTestState;getTick()J
-
createTimedTaskRunner
TimedTaskRunner createTimedTaskRunner()- Mappings:
Namespace Name Mixin selector intermediary method_36066Lnet/minecraft/class_4517;method_36066()Lnet/minecraft/class_4693;official qLpr;q()Lpv;named createTimedTaskRunnerLnet/minecraft/test/GameTestState;createTimedTaskRunner()Lnet/minecraft/test/TimedTaskRunner;
-
isRequired
public boolean isRequired()- Mappings:
Namespace Name Mixin selector intermediary method_22183Lnet/minecraft/class_4517;method_22183()Zofficial rLpr;r()Znamed isRequiredLnet/minecraft/test/GameTestState;isRequired()Z
-
isOptional
public boolean isOptional()- Mappings:
Namespace Name Mixin selector intermediary method_22184Lnet/minecraft/class_4517;method_22184()Zofficial sLpr;s()Znamed isOptionalLnet/minecraft/test/GameTestState;isOptional()Z
-
getTemplateName
- Mappings:
Namespace Name Mixin selector intermediary method_23638Lnet/minecraft/class_4517;method_23638()Ljava/lang/String;official tLpr;t()Ljava/lang/String;named getTemplateNameLnet/minecraft/test/GameTestState;getTemplateName()Ljava/lang/String;
-
getRotation
- Mappings:
Namespace Name Mixin selector intermediary method_29402Lnet/minecraft/class_4517;method_29402()Lnet/minecraft/class_2470;official uLpr;u()Lcvw;named getRotationLnet/minecraft/test/GameTestState;getRotation()Lnet/minecraft/util/BlockRotation;
-
getTestFunction
- Mappings:
Namespace Name Mixin selector intermediary method_29403Lnet/minecraft/class_4517;method_29403()Lnet/minecraft/class_4529;official vLpr;v()Lqi;named getTestFunctionLnet/minecraft/test/GameTestState;getTestFunction()Lnet/minecraft/test/TestFunction;
-
getTicksLeft
public int getTicksLeft()- Mappings:
Namespace Name Mixin selector intermediary method_36067Lnet/minecraft/class_4517;method_36067()Iofficial wLpr;w()Inamed getTicksLeftLnet/minecraft/test/GameTestState;getTicksLeft()I
-
isFlaky
public boolean isFlaky()- Mappings:
Namespace Name Mixin selector intermediary method_32241Lnet/minecraft/class_4517;method_32241()Zofficial xLpr;x()Znamed isFlakyLnet/minecraft/test/GameTestState;isFlaky()Z
-
getMaxAttempts
public int getMaxAttempts()- Mappings:
Namespace Name Mixin selector intermediary method_32242Lnet/minecraft/class_4517;method_32242()Iofficial yLpr;y()Inamed getMaxAttemptsLnet/minecraft/test/GameTestState;getMaxAttempts()I
-
getRequiredSuccesses
public int getRequiredSuccesses()- Mappings:
Namespace Name Mixin selector intermediary method_32243Lnet/minecraft/class_4517;method_32243()Iofficial zLpr;z()Inamed getRequiredSuccessesLnet/minecraft/test/GameTestState;getRequiredSuccesses()I
-