Package net.minecraft.test
Class GameTest
java.lang.Object
net.minecraft.test.GameTest
public class GameTest extends Object
-
Field Summary
Fields Modifier and Type Field Description private booleancompletedprivate longexpectedStopTimeprivate Collection<TimedTaskRunner>field_21452private Object2LongMap<Runnable>field_21453private longfield_21455private BlockRotationfield_25301private StructureBlockBlockEntityfield_27805private Collection<TestListener>listenersprivate BlockPosposprivate booleanstartedprivate Stopwatchstopwatchprivate TestFunctiontestFunctionprivate Throwablethrowableprivate intticksLeftprivate ServerWorldworld -
Constructor Summary
Constructors Constructor Description GameTest(TestFunction testFunction, BlockRotation blockRotation, ServerWorld serverWorld) -
Method Summary
Modifier and Type Method Description voidaddListener(TestListener listener)private voidcomplete()voidfail(Throwable throwable)BlockPosgetPos()StringgetStructureName()StringgetStructurePath()ThrowablegetThrowable()ServerWorldgetWorld()voidinit(BlockPos blockPos, int int2)booleanisCompleted()booleanisFailed()booleanisOptional()booleanisPassed()booleanisRequired()booleanisStarted()BlockRotationmethod_29402()TestFunctionmethod_29403()voidmethod_32240()booleanmethod_32241()intmethod_32242()intmethod_32243()private voidmethod_33315()(package private) voidsetPos(BlockPos pos)private voidstart()(package private) voidstartCountdown()voidtick()StringtoString()
-
Field Details
-
testFunction
-
pos
-
world
-
listeners
-
ticksLeft
private final int ticksLeft -
field_21452
-
field_21453
-
expectedStopTime
private long expectedStopTime -
field_21455
private long field_21455 -
started
private boolean started -
stopwatch
-
completed
private boolean completed -
field_25301
-
throwable
-
field_27805
-
-
Constructor Details
-
GameTest
-
-
Method Details
-
setPos
-
startCountdown
void startCountdown() -
tick
public void tick() -
method_33315
private void method_33315() -
start
private void start() -
getStructurePath
-
getPos
-
getWorld
-
isPassed
public boolean isPassed() -
isFailed
public boolean isFailed() -
isStarted
public boolean isStarted() -
isCompleted
public boolean isCompleted() -
complete
private void complete() -
fail
-
getThrowable
-
toString
-
addListener
-
init
-
method_32240
public void method_32240() -
isRequired
public boolean isRequired() -
isOptional
public boolean isOptional() -
getStructureName
-
method_29402
-
method_29403
-
method_32241
public boolean method_32241() -
method_32242
public int method_32242() -
method_32243
public int method_32243()
-