22 lines
566 B
Java
22 lines
566 B
Java
package net.minecraft.gametest.framework;
|
|
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
class GameTestEvent {
|
|
@Nullable
|
|
public final Long expectedDelay;
|
|
public final Runnable assertion;
|
|
|
|
private GameTestEvent(@Nullable Long expectedDelay, Runnable assertion) {
|
|
this.expectedDelay = expectedDelay;
|
|
this.assertion = assertion;
|
|
}
|
|
|
|
static GameTestEvent create(Runnable assertion) {
|
|
return new GameTestEvent(null, assertion);
|
|
}
|
|
|
|
static GameTestEvent create(long expectedDelay, Runnable assertion) {
|
|
return new GameTestEvent(expectedDelay, assertion);
|
|
}
|
|
}
|