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 boolean
completed
private long
expectedStopTime
private Collection<TimedTaskRunner>
field_21452
private Object2LongMap<Runnable>
field_21453
private long
field_21455
private BlockRotation
field_25301
private Collection<TestListener>
listeners
private BlockPos
pos
private boolean
started
private Stopwatch
stopwatch
private TestFunction
testFunction
private Throwable
throwable
private int
ticksLeft
private ServerWorld
world
-
Constructor Summary
Constructors Constructor Description GameTest(TestFunction testFunction, BlockRotation blockRotation, ServerWorld serverWorld)
-
Method Summary
Modifier and Type Method Description void
addListener(TestListener listener)
private void
complete()
void
fail(Throwable throwable)
BlockPos
getPos()
String
getStructureName()
String
getStructurePath()
Throwable
getThrowable()
ServerWorld
getWorld()
void
init(BlockPos blockPos, int int2)
boolean
isCompleted()
boolean
isFailed()
boolean
isOptional()
boolean
isPassed()
boolean
isRequired()
boolean
isStarted()
BlockRotation
method_29402()
TestFunction
method_29403()
(package private) void
setPos(BlockPos pos)
private void
start()
(package private) void
startCountdown()
void
tick()
String
toString()
-
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
-
-
Constructor Details
-
GameTest
-
-
Method Details
-
setPos
-
startCountdown
void startCountdown() -
tick
public void tick() -
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
-
isRequired
public boolean isRequired() -
isOptional
public boolean isOptional() -
getStructureName
-
method_29402
-
method_29403
-