Package net.minecraft.test
Class GameTestState
java.lang.Object
net.minecraft.test.GameTestState
- Mappings:
Namespace Name official printermediary net/minecraft/class_4517named 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 official aLpr;a:Lqi;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 bLpr;b:Lgu;intermediary field_20560Lnet/minecraft/class_4517;field_20560:Lnet/minecraft/class_2338;named posLnet/minecraft/test/GameTestState;pos:Lnet/minecraft/util/math/BlockPos;
-
world
- Mappings:
Namespace Name Mixin selector official cLpr;c:Laif;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 dLpr;d:Ljava/util/Collection;intermediary field_20562Lnet/minecraft/class_4517;field_20562:Ljava/util/Collection;named listenersLnet/minecraft/test/GameTestState;listeners:Ljava/util/Collection;
-
ticksLeft
private final int ticksLeft- Mappings:
Namespace Name Mixin selector official eLpr;e:Iintermediary field_20563Lnet/minecraft/class_4517;field_20563:Inamed ticksLeftLnet/minecraft/test/GameTestState;ticksLeft:I
-
timedTaskRunners
- Mappings:
Namespace Name Mixin selector official fLpr;f: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 gLpr;g: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;
-
expectedStopTime
private long expectedStopTime- Mappings:
Namespace Name Mixin selector official hLpr;h:Jintermediary field_21454Lnet/minecraft/class_4517;field_21454:Jnamed expectedStopTimeLnet/minecraft/test/GameTestState;expectedStopTime:J
-
tick
private long tick- Mappings:
Namespace Name Mixin selector official iLpr;i: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 jLpr;j:Zintermediary field_20565Lnet/minecraft/class_4517;field_20565:Znamed startedLnet/minecraft/test/GameTestState;started:Z
-
stopwatch
- Mappings:
Namespace Name Mixin selector official kLpr;k: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 lLpr;l:Zintermediary field_20567Lnet/minecraft/class_4517;field_20567:Znamed completedLnet/minecraft/test/GameTestState;completed:Z
-
rotation
- Mappings:
Namespace Name Mixin selector official mLpr;m:Lcvw;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 nLpr;n: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 oLpr;o:Ldax;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
- Mappings:
Namespace Name Mixin selector official <init>Lpr;<init>(Lqi;Lcvw;Laif;)Vintermediary <init>Lnet/minecraft/class_4517;<init>(Lnet/minecraft/class_4529;Lnet/minecraft/class_2470;Lnet/minecraft/class_3218;)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 official aLpr;a(Lgu;)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
void startCountdown()- Mappings:
Namespace Name Mixin selector official aLpr;a()Vintermediary method_23634Lnet/minecraft/class_4517;method_23634()Vnamed startCountdownLnet/minecraft/test/GameTestState;startCountdown()V
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector official bLpr;b()Vintermediary method_22165Lnet/minecraft/class_4517;method_22165()Vnamed tickLnet/minecraft/test/GameTestState;tick()V
-
tickTests
private void tickTests()- Mappings:
Namespace Name Mixin selector official ALpr;A()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 BLpr;B()Vintermediary method_23639Lnet/minecraft/class_4517;method_23639()Vnamed startLnet/minecraft/test/GameTestState;start()V
-
runAtTick
- Mappings:
Namespace Name Mixin selector official aLpr;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 cLpr;c()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 dLpr;d()Lgu;intermediary method_22172Lnet/minecraft/class_4517;method_22172()Lnet/minecraft/class_2338;named getPosLnet/minecraft/test/GameTestState;getPos()Lnet/minecraft/util/math/BlockPos;
-
getSize
- Mappings:
Namespace Name Mixin selector official eLpr;e()Lhz;intermediary method_36061Lnet/minecraft/class_4517;method_36061()Lnet/minecraft/class_2382;named getSizeLnet/minecraft/test/GameTestState;getSize()Lnet/minecraft/util/math/Vec3i;
-
getBoundingBox
- Mappings:
Namespace Name Mixin selector official fLpr;f()Ledv;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 CLpr;C()Ldax;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 gLpr;g()Laif;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 hLpr;h()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 iLpr;i()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 jLpr;j()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 kLpr;k()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 lLpr;l()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 DLpr;D()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 mLpr;m()Vintermediary method_36064Lnet/minecraft/class_4517;method_36064()Vnamed completeIfSuccessfulLnet/minecraft/test/GameTestState;completeIfSuccessful()V
-
fail
- Mappings:
Namespace Name Mixin selector official aLpr;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 nLpr;n()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 aLpr;a(Lps;)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 aLpr;a(Lgu;I)Vintermediary method_22166Lnet/minecraft/class_4517;method_22166(Lnet/minecraft/class_2338;I)Vnamed initLnet/minecraft/test/GameTestState;init(Lnet/minecraft/util/math/BlockPos;I)V
-
clearArea
public void clearArea()- Mappings:
Namespace Name Mixin selector official oLpr;o()Vintermediary method_32240Lnet/minecraft/class_4517;method_32240()Vnamed clearAreaLnet/minecraft/test/GameTestState;clearArea()V
-
getTick
long getTick()- Mappings:
Namespace Name Mixin selector official pLpr;p()Jintermediary method_36065Lnet/minecraft/class_4517;method_36065()Jnamed getTickLnet/minecraft/test/GameTestState;getTick()J
-
createTimedTaskRunner
TimedTaskRunner createTimedTaskRunner()- Mappings:
Namespace Name Mixin selector official qLpr;q()Lpv;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 rLpr;r()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 sLpr;s()Zintermediary method_22184Lnet/minecraft/class_4517;method_22184()Znamed isOptionalLnet/minecraft/test/GameTestState;isOptional()Z
-
getTemplateName
- Mappings:
Namespace Name Mixin selector official tLpr;t()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 uLpr;u()Lcvw;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 vLpr;v()Lqi;intermediary method_29403Lnet/minecraft/class_4517;method_29403()Lnet/minecraft/class_4529;named getTestFunctionLnet/minecraft/test/GameTestState;getTestFunction()Lnet/minecraft/test/TestFunction;
-
getTicksLeft
public int getTicksLeft()- Mappings:
Namespace Name Mixin selector official wLpr;w()Iintermediary method_36067Lnet/minecraft/class_4517;method_36067()Inamed getTicksLeftLnet/minecraft/test/GameTestState;getTicksLeft()I
-
isFlaky
public boolean isFlaky()- Mappings:
Namespace Name Mixin selector official xLpr;x()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 yLpr;y()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 zLpr;z()Iintermediary method_32243Lnet/minecraft/class_4517;method_32243()Inamed getRequiredSuccessesLnet/minecraft/test/GameTestState;getRequiredSuccesses()I
-