Package net.minecraft.test
Class GameTestState
java.lang.Object
net.minecraft.test.GameTestState
- Mappings:
Namespace Name official lvintermediary net/minecraft/class_4517named net/minecraft/test/GameTestState
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate longprivate Collection<TestListener>private BlockRotationprivate booleanprivate Stopwatchprivate @Nullable StructureBlockBlockEntityprivate TestFunctionprivate longprivate Object2LongMap<Runnable>private intprivate Collection<TimedTaskRunner>private 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 aLlv;a:Lmm;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 bLlv;b:Lgb;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 cLlv;c:Labj;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 dLlv;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 eLlv;e:Iintermediary field_20563Lnet/minecraft/class_4517;field_20563:Inamed ticksLeftLnet/minecraft/test/GameTestState;ticksLeft:I
-
timedTaskRunners
- Mappings:
Namespace Name Mixin selector official fLlv;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 gLlv;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 hLlv;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 iLlv;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 jLlv;j:Zintermediary field_20565Lnet/minecraft/class_4517;field_20565:Znamed startedLnet/minecraft/test/GameTestState;started:Z
-
stopwatch
- Mappings:
Namespace Name Mixin selector official kLlv;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 lLlv;l:Zintermediary field_20567Lnet/minecraft/class_4517;field_20567:Znamed completedLnet/minecraft/test/GameTestState;completed:Z
-
rotation
- Mappings:
Namespace Name Mixin selector official mLlv;m:Lceq;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 nLlv;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 oLlv;o:Lciz;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>Llv;<init>(Lmm;Lceq;Labj;)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 aLlv;a(Lgb;)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 aLlv;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 bLlv;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 ALlv;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 BLlv;B()Vintermediary method_23639Lnet/minecraft/class_4517;method_23639()Vnamed startLnet/minecraft/test/GameTestState;start()V
-
runAtTick
- Mappings:
Namespace Name Mixin selector official aLlv;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
-
getStructurePath
- Mappings:
Namespace Name Mixin selector official cLlv;c()Ljava/lang/String;intermediary method_22169Lnet/minecraft/class_4517;method_22169()Ljava/lang/String;named getStructurePathLnet/minecraft/test/GameTestState;getStructurePath()Ljava/lang/String;
-
getPos
- Mappings:
Namespace Name Mixin selector official dLlv;d()Lgb;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 eLlv;e()Lgw;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 fLlv;f()Ldlw;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 CLlv;C()Lciz;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 gLlv;g()Labj;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 hLlv;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 iLlv;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 jLlv;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 kLlv;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 lLlv;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 DLlv;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 mLlv;m()Vintermediary method_36064Lnet/minecraft/class_4517;method_36064()Vnamed completeIfSuccessfulLnet/minecraft/test/GameTestState;completeIfSuccessful()V
-
fail
- Mappings:
Namespace Name Mixin selector official aLlv;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 nLlv;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 aLlv;a(Llw;)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 aLlv;a(Lgb;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 oLlv;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 pLlv;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 qLlv;q()Llz;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 rLlv;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 sLlv;s()Zintermediary method_22184Lnet/minecraft/class_4517;method_22184()Znamed isOptionalLnet/minecraft/test/GameTestState;isOptional()Z
-
getStructureName
- Mappings:
Namespace Name Mixin selector official tLlv;t()Ljava/lang/String;intermediary method_23638Lnet/minecraft/class_4517;method_23638()Ljava/lang/String;named getStructureNameLnet/minecraft/test/GameTestState;getStructureName()Ljava/lang/String;
-
getRotation
- Mappings:
Namespace Name Mixin selector official uLlv;u()Lceq;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 vLlv;v()Lmm;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 wLlv;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 xLlv;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 yLlv;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 zLlv;z()Iintermediary method_32243Lnet/minecraft/class_4517;method_32243()Inamed getRequiredSuccessesLnet/minecraft/test/GameTestState;getRequiredSuccesses()I
-