minecraft-src/net/minecraft/gametest/framework/GameTestEvent.java
2025-07-04 01:41:11 +03:00

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);
}
}