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